[Python-bugs-list] floating point ??? (PR#337)

slupi@iol.it slupi@iol.it
Tue, 23 May 2000 05:09:38 -0400 (EDT)


Full_Name: Sergio Lupi
Version: 1.52
OS: Linux Suse 6.4
Submission from: (NULL) (195.78.220.33)


very simple:
try this:

>>> 0.14-0.13 == 0.13-0.12
1
so far so good, but

>>> 0.13-0.12 == 0.12-0.11
0

There are some combinations of numbers (they are many indeed) 
that mess things up.

This has been tested on several PCs under Linux and NT