floating point math results question

Aahz Maruch aahz at panix.com
Fri Jan 25 12:10:46 EST 2002


In article <88bc63c6.0201250748.241385d2 at posting.google.com>,
Doug Farrell <writeson at earthlink.net> wrote:
>
>The results should be 0.8 and that's it. Where is the 00000000000004
>coming from? Is this just an artifact of the use of binary
>representation of floating point numbers or some artifact of printing
>a floating point number?

See http://www.python.org/doc/current/tut/node14.html
-- 
                      --- Aahz  <*>  (Copyright 2002 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

"I support family values -- Addams family values" --www.nancybuttons.com



More information about the Python-list mailing list