!!! 2.1, 2.2, 2.2.1, PYTHON BUGS ????

Franck Abella fabella at free.fr
Thu May 30 10:22:47 EDT 2002


Hi,

Math problem:
----------- 1 -------------
try this     >>>>     i=7/3.0
               >>>>     i

result       >>>>      7.3333333333333335  (first problem it should be equal
to 7.3333333333333334)
----------- 2 --------------
try this    >>>> i = 7.3335
              >>>> j
result      >>>>7.3334999999999999  (false)
------------ 3 -------------
try this     >>>> j = 6.2
               >>>> j
result       >>>> 6.2000000000000002

I would like to know if yo have those problems
Thanks

Frank








More information about the Python-list mailing list