Skip to content
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

Math.round(1.5) isn't 2! #2258

Closed
gfwilliams opened this issue Aug 24, 2022 · 2 comments
Closed

Math.round(1.5) isn't 2! #2258

gfwilliams opened this issue Aug 24, 2022 · 2 comments

Comments

@gfwilliams
Copy link
Member

See http://forum.espruino.com/conversations/337195/#comment16657931

@MaBecker
Copy link
Contributor

Just inspection the code and comparing with other implementation, difference is the use 0.5 and not 0.4999999

@gfwilliams
Copy link
Member Author

Fixed with #2260

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants