-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Float number calculation loses accuracy #5596
Labels
Comments
Alanscut
added a commit
to Alanscut/moment
that referenced
this issue
Jun 14, 2020
ichernev
added a commit
that referenced
this issue
Dec 23, 2023
[bugfix] fix #5596: floating number calculation converter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
float number calculation loses accuracy.
To Reproduce
Steps to reproduce the behavior:
duration
sometimes can't get accurate results, e.g.the result should be 240, not 239.99999999906868
Expected behavior
when there are float numbers, we could get the accurate result.
Environment
The text was updated successfully, but these errors were encountered: