Conditional operator in Python?

Grant Edwards grante at visi.com
Fri Apr 6 11:06:57 EDT 2001


In article <mailman.986536688.13852.python-list at python.org>, Tim Peters wrote:

>OTOH, trailing zeroes can be useful in real-world arithmetic, and the REXX
>language defines (e.g.) 4.73 - 1.03 to be 3.70, not 3.7, and way not
>3.7000000000000002.  I'm going to inflict that on Python someday.

Geez, like we don't have enough confused FP users today.
I can just imagine the postings:

  Why does 1.12345678 * 3 == 3 ?

-- 
Grant Edwards                   grante             Yow!  Send your questions
                                  at               to "ASK ZIPPY", Box 40474,
                               visi.com            San Francisco, CA 94140,
                                                   USA



More information about the Python-list mailing list