[issue30752] Basic subtraction is wrong ( 1.83 - 1.52 == 0.31000000000000005)

2017-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: This is working as expected. Python's floats use the hardware-provided _binary_ floating-point format, which can't represent every finite decimal value exactly. I recommend reading https://docs.python.org/3.6/tutorial/floatingpoint.html for more information.

[issue30752] Basic subtraction is wrong ( 1.83 - 1.52 == 0.31000000000000005)

2017-06-25 Thread René Podlogar
New submission from René Podlogar: My Python-Installations Python 2.7.12, Python 3.4.5 @linux64 and the CLI on the python.org-Website (interactive shell) affected: Python 3.6.0 (default, Jan 13 2017, 00:00:00) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more