code not true?

Kragen Sitaker kragen at dnaco.net
Sun Apr 23 02:21:34 EDT 2000


In article <Pine.GSO.4.10.10004230758200.15546-100000 at sundial>,
Moshe Zadka  <mzadka at geocities.com> wrote:
>> Not quite.  No number of bits is sufficient to represent .07 exactly in 
>> the typical (and IEEE standard) representation.  
>
>Yes, but enough bits could make sure that 0.07*100 is indistinguishable
>from 7.0

How many decimal digits are needed to make sure that 3 * (1/3) is
indistinguishable from 1?

>But I agree with the point -- floats are evil. Very very evil. In fact,
>I wouldn't mind at all if there was some specific command-line flag to the
>interpreter to enable floats.

That would be kind of nice.
-- 
<kragen at pobox.com>       Kragen Sitaker     <http://www.pobox.com/~kragen/>
The Internet stock bubble didn't burst on 1999-11-08.  Hurrah!
<URL:http://www.pobox.com/~kragen/bubble.html>
The power didn't go out on 2000-01-01 either.  :)



More information about the Python-list mailing list