[Python-ideas] [Python-Dev] The Case Against Floating Point ==

Aaron Watters aaron.watters at gmail.com
Fri Mar 14 15:40:58 CET 2008


For systems programming I often use
floats as timestamps in dictionaries,
and in this case I never do calculations
and all I care about is "same" or "different",
meaning "any single bit difference".

If you change the way == works and
also follow through and change the way
floats in dictionaries work you would
probably break very many applications
like this.  I think any "almost equal"
should be implemented using a new
method or syntax x~=y rather than
break things.

   - Aaron Watters

http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=stdio+stinks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20080314/16f92055/attachment.html>


More information about the Python-ideas mailing list