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
I found that rounding behaves differently depending on if you pass in 0 or not.
If you evaluate mathjs.round(-2.5) it returns -2
However if you evaluate mathjs.round(-2.5, 0) it returns -3
We wish to use the later case (always rounding away from 0) so its not a pressing issue, as we can just pass in the extra parameter. But I figured it should be brought to your attention.
The text was updated successfully, but these errors were encountered:
Hello,
I found that rounding behaves differently depending on if you pass in 0 or not.
If you evaluate
mathjs.round(-2.5)
it returns -2However if you evaluate
mathjs.round(-2.5, 0)
it returns -3We wish to use the later case (always rounding away from 0) so its not a pressing issue, as we can just pass in the extra parameter. But I figured it should be brought to your attention.
The text was updated successfully, but these errors were encountered: