[issue22325] wrong subtraction result

2014-09-02 Thread R. David Murray
R. David Murray added the comment: https://docs.python.org/2/tutorial/floatingpoint.html -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue22325] wrong subtraction result

2014-09-02 Thread Constantino Antunes
New submission from Constantino Antunes: I was using python as my calculator when I got a result which had to be rounded to be the value I expected. So I made some tests with a simple case. Given that 0.38 - 0.20 = 0.18, then 1000.38 - 1000.20 should be also 0.18. Here is this calculation done