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

warning #10

Closed
hrh94 opened this issue Mar 18, 2018 · 7 comments
Closed

warning #10

hrh94 opened this issue Mar 18, 2018 · 7 comments

Comments

@hrh94
Copy link

hrh94 commented Mar 18, 2018

-3000000000000000500 is beyond boundary when transfer to integer, the results may not be accurate

@yilikun
Copy link

yilikun commented Mar 18, 2018

i have the problem,too,can i stop it logging?

@gaochengyidlmu
Copy link

Me too.

49514898769934380 is beyond boundary when transfer to integer, the results may not be accurate

@gaochengyidlmu
Copy link

the page has many data to calculate, so it always print the warning log.

image

@camsong
Copy link
Member

camsong commented Dec 28, 2018

3000000000000000500 is bigger than 2^53=9007199254740992, so JS can't calculate it precisely.

@camsong camsong closed this as completed Dec 28, 2018
@thewashingtonhua
Copy link

Any chance may there be an option to turn this off (like @babel/polyfill/noConflict). We know these warnings are reasonable. But it could be annoying if they come in flood. I wanna see my own warnings but they are buried in those.

@gaochengyidlmu
Copy link

@camsong Before I remove the warning, the page is slow.
Now, fixed.

@camsong
Copy link
Member

camsong commented Feb 14, 2019

@tonghuashuo good idea, you can use v1.3.1 to get disable warning.

https://github.com/nefe/number-precision/releases/tag/1.3.1

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

5 participants