You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
math.round(math.evaluate("2.223kg"), 2).toString()
Uncaught TypeError: Unexpected type of argument in function round (expected: number or Complex or BigNumber or Fraction or Array or Matrix or DenseMatrix or SparseMatrix or string or boolean, actual: Unit, index: 0)
Possible challenges, is you will need to account for people doing strange units like "kg2.223" or "2.223kg^2", so addressing this will require parsing to properly capture the units.
The text was updated successfully, but these errors were encountered:
First example works as expected
Second example doesn't work as expected
My desired behavior would be
Possible challenges, is you will need to account for people doing strange units like "kg2.223" or "2.223kg^2", so addressing this will require parsing to properly capture the units.
The text was updated successfully, but these errors were encountered: