-
Notifications
You must be signed in to change notification settings - Fork 419
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
OnValueChange convert input to wrong number #519
Comments
I don't think @s-yadav maintains this project anymore? |
I do maintain it @alvarotrigo. Just not getting an active time for it. |
@nikhil-varma. looks related to #506, but float values are not used here. @alvarotrigo a codesandbox will help us to debug better. |
https://codesandbox.io/s/number-format-hiitb?file=/package.json |
Thanks, @a414137191. Will check. |
I am able to reproduce and found the root cause. So the real culprit is calling .toString() on the number which does not handle the scientific notation properly. Looking into the best option to convert scientific notation to normal decimals. Will fix the issue soon. Something like https://codereview.stackexchange.com/questions/243164/convert-exponential-e-notation-numbers-to-decimals |
@a414137191 This is fixed in 4.5.4. Let me know if still face this issue. |
when i use NumberFormat with decimalScale={8} and enter 997.00000002, it will convert to 1088.
The text was updated successfully, but these errors were encountered: