HELP: restore my faith in Python

David Fenyes dfenyes at flash.net
Mon Mar 6 19:26:43 EST 2000


>>>>> "Ken" == Ken Seehof <kens at sightreader.com> writes:

    Ken> Everyone knows that int(0.99999999999999999999993427) == 1 is
    Ken> more correct than int(0.99999999999999999999993427) == 0.  I
    Ken> challenge anyone to come up with a real world situation where
    Ken> the latter answer is more valuable.

Can you fit a 1 meter refrigerator in a 0.99999 meter recess?  The
definition of "integer part of x" is very clear.  Rounding is another
issue, and the need for precision varies with application.


-- 
David Fenyes  --  dfenyes at home.com



More information about the Python-list mailing list