Message3693
Python's float type is double precision.
Look at the position where the numbers are rounded.
Result on Python 2.0 (or 2.1 alpha 2)
>>> 0.8
0.80000000000000004
>>> print 0.80000000000000004
0.8
>>> print 0.8000000000004
0.8
>>> print 0.7999999999999
0.8
>>> print 0.7999999999995
0.8
>>> print 0.7999999999994
0.799999999999
Result on Jython 2.0
>>> 0.8
0.8
>>> print 0.80000000000000004
0.8
>>> print 0.8000000000004
0.8000000000004
>>> print 0.7999999999999
0.7999999999999
>>> print 0.7999999999995
0.7999999999995
>>> print 0.7999999999994
0.7999999999994
|
|
Date |
User |
Action |
Args |
2007-08-23 13:53:26 | admin | link | issue405849 messages |
2007-08-23 13:53:26 | admin | create | |
|