[Python-Dev] Mixing float and Decimal -- thread reboot (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Fri Mar 26 00:06:06 CET 2010


Steven D'Aprano <steve pearwood.info> writes:

Personally, I'm less concerned about sets of floats ending up with strange combinations of NANs than I am about the possibility of disastrous maths errors caused by allowing NANs to test as equal. Here's a simplistic example:

You just said "if you choose to use floats, then you need to understand that NANs are weird". I wonder why this saying shouldn't apply to your "simplistic example" of NAN usage.

(is your example even from real life?)



More information about the Python-Dev mailing list