-
Notifications
You must be signed in to change notification settings - Fork 742
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
15 Significant digit limit #14
Comments
Yes, I discussed this in #11. Basically, with double precision values there is no guarantee that decimal numbers with sixteen significant digits or more will be represented precisely. For example,
In any case, the 15 s.d. limit can be turned off with
|
Thanks for that, don't know how I missed it. I don't particularly want to turn off the error, it will come in very useful, but what I had hoped is that if I enter the value as a string ("9007199254740991") rather than a number type (9007199254740991) then I wouldn't experience the error. That is what you also seem to suggest in the other thread, but it does not work for me, perhaps I am missing something else? |
Ok, it must be something that I am doing locally in my app, as it works in a jsfiddle without the rest of my code. Thanks once again. |
I was wondering why the number type input is limited to 15 significant digits when Javascript can represent an integer to 16?
Ie. -9007199254740991 to 9007199254740991
I'm not suggesting this is the fix/enhancement as I'm sure there is more to it than that.
The text was updated successfully, but these errors were encountered: