79577479

Date: 2025-04-16 15:02:16
Score: 0.5
Natty:
Report link

The mathjs library leaves the value in its original units when you toString(). To simply convert or automatically, you need to make use the to function or method like this

console.log(a.to('kgCO2eq').toString());

Reference: https://mathjs.org/docs/datatypes/units.html#usage

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: pumpkin