◐ Shell
clean mode source ↗

Message 59798 - Python tracker

Division of two longs can produce results that are needlessly 
inaccurate:

>>> from __future__ import division
>>> 10**40/10**39
10.000000000000002

The correct result is, of course, 10.0, which is exactly representable 
as a float.

The attached snippet of Python code shows that things don't have to be 
this way.