On Fri, Apr 17, 2009 at 3:58 PM, Scott David Daniels <Scott.Daniels at acm.org> wrote: > Non-associativity is what makes for floating point headaches. > To my knowledge, floating point is at least commutative. Well, mostly. :-) >>> from decimal import Decimal >>> x, y = Decimal('NaN123'), Decimal('-NaN456') >>> x + y Decimal('NaN123') >>> y + x Decimal('-NaN456') Similar effects can happen with regular IEEE 754 binary doubles, but Python doesn't expose NaN payloads or signs, so we don't see those effects witihin Python. Mark
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4