-
Notifications
You must be signed in to change notification settings - Fork 63
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
intermittent rounding errors #2
Comments
Hey, i was just passing through and saw this issue. |
I guess this is because of how I parse numbers character-by-character using math. I guess the alternative would be to store the number as a string and parseFloat it at the end. Either way, it's probably not good to depend on floats for exact values for the reasons @Floby pointed out. |
Want a PR for this? |
👍 |
Same here, if no one takes the lead I'll give it a try 😸 |
Oh wow. Totally forgot about this. I'll try to have something this week. |
No hurry :), recently I found this way useful to make a lightweight JSON database and was checking on things |
Any progress planned on this ? |
I believe this issue has been resolved in 1.2.0 after 044b268 |
some times numbers don't come out exactly like they came in...
https://gist.github.com/1237220
it's only the smallest end of the scale, but still important.
strangely, it only happens sometimes.
The text was updated successfully, but these errors were encountered: