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
Definitely not a Python-related wtf, but nice to know anyways
>>> round(1.25, 1) 1.2 >>> round(1.35, 1) 1.4
>>> round(1.45) + round(1.55) == 3 True
https://docs.python.org/3/tutorial/floatingpoint.html#tut-fp-issues
The text was updated successfully, but these errors were encountered:
That's very intriguing. 😱
official doc here
but, emmm... it seems bad 😠
Definitely not a Python-related wtf, but nice to know anyways
https://docs.python.org/3/tutorial/floatingpoint.html#tut-fp-issues
The text was updated successfully, but these errors were encountered: