We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
onValueChange={({floatValue}: NumberFormatValues) => { if (floatValue) { onChange(floatValue); } }}
After entering 16th digits, the next digit is converted to zero.
Example: Enter 16 digits: 5 555 555 555 555 555 Enter next one 5: 55 555 555 555 555 550
Example: Enter 16 digits: 5 555 555 555 555 555 Enter next one 5: 55 555 555 555 555 555
codesandbox
The text was updated successfully, but these errors were encountered:
I think this has to do with the MAX_SAFE_INTEGER (9007 1992 5474 0991 < 17th digit number).
9007 1992 5474 0991
Just try console.log(Number(55555555555555555)) and you will get the same result.
console.log(Number(55555555555555555))
Sorry, something went wrong.
For long integers, using string representation of those numbers is better. You can use value from NumberFormatValues
NumberFormatValues
No branches or pull requests
Describe the issue and the actual behavior
After entering 16th digits, the next digit is converted to zero.
Example:
Enter 16 digits: 5 555 555 555 555 555
Enter next one 5: 55 555 555 555 555 550
Describe the expected behavior
Example:
Enter 16 digits: 5 555 555 555 555 555
Enter next one 5: 55 555 555 555 555 555
Provide a CodeSandbox link illustrating the issue
codesandbox
Provide steps to reproduce this issue
Please check the browsers where the issue is seen
The text was updated successfully, but these errors were encountered: