[issue41269] Wrong subtraction calculations

2020-07-10 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report. This isn't a Python bug, but a common issue when working with floating-point numbers. I recommend taking a look at this section of the tutorial for more information: https://docs.python.org/3.8/tutorial/floatingpoint.html -- n

[issue41269] Wrong subtraction calculations

2020-07-10 Thread Ivan
New submission from Ivan : I've started to learn python and tried command: print(-2.989 + 2) it gives me result of -0.9889 same error can be observed with numbers from 4 and below like: print(-2.989 + 4) 1.0111 print(-2.989 + 3) 0.01112 print(-2.989 + 1) -1.