Soustraction


#1

Bonjour,

Pourquoi ?
1.4 - 0.7 = 0.7
Alors que,
2.1 - 0.7 = 1.4000000000000001

Une idée ?

Thank you

But complicated for a subtraction !


#2

Floating point arithmetic error. Something on the order of 10 to the minus 15 in degree. In other words, not worth noting.

>>> print ("%.2f" % (2.1 - 0.70))
1.40
>>>