123.3 + 0.1 is 123.3999999999 ?

Erik Max Francis max at alcyone.com
Mon Jun 2 23:05:24 EDT 2003


Grant Edwards wrote:

> In article <895e4ce2.0306021736.13c657a5 at posting.google.com>, D.W.
> wrote:
> 
> > Good article.  It is correct when it says that this happens in any
> > language.  I always thought it was common knowledge among
> > programmers
> > that "1" could be stored as 0.99999999999999999...
> 
> Wha?   I defy you to find a system where 1 isn't stored exactly.

I suspect he's being facetious, since 0.999... = 1.

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ Success and failure are equally disastrous.
\__/  Tennessee Williams




More information about the Python-list mailing list