Why is 2.3 = 2.2999999999999998 ?

Erik Max Francis max at alcyone.com
Thu Jan 23 20:02:47 EST 2003


Arne Koewing wrote:

> my puthon installation seems to ce confused about floats...

FAQ faq FAQ faq FAQ faq FAQ faq FAQ faq FAQ faq FAQ FAQ faq FAQ faq FAQ

This is a standard feature of floating point arithmetic, and has nothing
to do with Python.

	http://www.python.org/doc/FAQ.html#4.98

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ An undevout astronomer is mad.
\__/ Edward Young
    Bosskey.net: Quake III Arena / http://www.bosskey.net/q3a/
 A personal guide to Quake III Arena.




More information about the Python-list mailing list