-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amount precision #1
Comments
+1 This needs to be fixed. It would be great if you could alter the test suite to properly include the missing coverage, then add bignumber to make the tests pass again. |
Hey Marak, |
That's okay, we can make those stings. |
Due to the nature of number handling on javascript numbers with more than 15-16 significant digits can produce loss of precision.
The best solution to my knowledge is to handle the amounts as strings and use a bignum library for the arithmetic.
The text was updated successfully, but these errors were encountered: