newbie floating point question

Alex alexhelder at R191.net
Thu Feb 21 14:47:20 EST 2002


Why does this happen ?

>>> .2
0.20000000000000001

Is this the correct behavior for the Python 2.2 interpreter ? (version info
is printed below )

Python 2.2 (#1, Jan 29 2002, 01:43:44)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2


Thanks,


-- 
Alex Helder

to email: change r191 --> att



More information about the Python-list mailing list