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 Multiplication #39359
Comments
Why (1.16 * 100) is not the same than (1.16 * 10 * 10)? I tried 1.16*100. also and it is = 115.99999999; but if I Thanks.... |
Logged In: YES The answer to your question can be found in the Python http://www.python.org/doc/tut/node14.html Please don't use the bug tracker to ask for help in the |
Logged In: YES I'sorry, but I don't agree... |
Logged In: YES This is not a bug. Binary floating point cannot represent decimal fractions exactly, What changed is that Python 2.0 shows more precision than before You can use str() or print to get the old, rounded output: >>> print 0.1+0.1
0.2
>>> Follow the link for more information: |
Logged In: YES Close again. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: