Replies: 1 comment 1 reply
-
Both For displaying to a user, the easiest is to round the number to a limited number of digits. Here some documentation: https://mathjs.org/docs/datatypes/numbers.html#roundoff-errors |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This problem was discussed here: #447
The solution to use big numbers does not seem to work anymore.
math.config({number: 'BigNumber'});
math.evaluate('cos(pi/2)').toString() //=1.539082031431044993140174126710585339910740432566411533235469223e-64 != 0
Is there a way to do it now with a full expression?
Beta Was this translation helpful? Give feedback.
All reactions