Skip to content
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

two float number plus a problem #15

Closed
icssjs opened this issue Aug 21, 2018 · 1 comment
Closed

two float number plus a problem #15

icssjs opened this issue Aug 21, 2018 · 1 comment

Comments

@icssjs
Copy link

icssjs commented Aug 21, 2018

NP.plus(8.05463959, 9.90925221) is beyond boundary when transfer to integer, the results may not be accurate

@icssjs icssjs changed the title NP.plus(8.05463959, 9.90925221) two float number plus a problem Aug 21, 2018
@camsong
Copy link
Member

camsong commented Oct 23, 2019

Yep, this number's precision is out of js can control, the warning already showed the concern.
You need to use https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants