On SuSE 10.2/Xeon there seems to be a rounding bug for
floating-point addition:
dickinsm@weyl:~ python
Python 2.5 (r25:51908, May 25 2007, 16:14:04)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.
999999999999999 8.0
999999999999999 8.0
100000000000000 00.0
The last result here should be 999999999999999 8.0,
not 100000000000000 00.0. Is anyone else seeing this
bug, or is it just a quirk of my system?
Mark
floating-point addition:
dickinsm@weyl:~ python
Python 2.5 (r25:51908, May 25 2007, 16:14:04)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.
>>a = 1e16-2.
>>a
>>a
>>a+0.999 # gives expected result
>>a+0.9999 # doesn't round correctly.
The last result here should be 999999999999999 8.0,
not 100000000000000 00.0. Is anyone else seeing this
bug, or is it just a quirk of my system?
Mark
Comment