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
Python 3 floating point rounding #328
Comments
@hpourreza Thanks for the issue. Could you send a pull request to fix it? |
See https://docs.python.org/3/tutorial/floatingpoint.html - However, it seems I see the opposite behaviour, the only way to get 121.0 is to evaluate print(2.2*55) on python2. Any other condition (executed at prompt, or executed in python3) results in 121.00000000000001
|
When I run
2.2*55
in Python 3, I get121.00000000000001
instead of121.0
that is on the course website (01_numpy). I think the output on the course website is from Python 2 that prints121.0
.The text was updated successfully, but these errors were encountered: