[Python-ideas] [Python-Dev] The Case Against Floating Point ==
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
- Aaron Watters
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas