You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the sample code mentioned in the docs: https://jsfiddle.net/auom8st8/
When I try to enter a large number (the number of digits is greater than 18), the result is displayed incorrectly
Is there a way to solve the problem with user input numbers too large?
The text was updated successfully, but these errors were encountered:
I created a version based on this repository with several previous repairs and adding "spinners" (these can be disabled), apparently I also have this problem when I reach 22 digits (the number of digits is reset to 18), I don't know if you mean this? you can try it? https://joserick.com/v_money_spinner
The MAX_SAFE_INTEGER constant has a value of 9007199254740991 (9,007,199,254,740,991 or ~9 quadrillion). The reasoning behind that number is that JavaScript uses double-precision floating-point format numbers as specified in IEEE 754 and can only safely represent numbers between -(253 - 1) and 253 - 1.
I tried the sample code mentioned in the docs: https://jsfiddle.net/auom8st8/
When I try to enter a large number (the number of digits is greater than 18), the result is displayed incorrectly
Is there a way to solve the problem with user input numbers too large?
The text was updated successfully, but these errors were encountered: