[Python-Dev] Why is nan != nan?

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 26 05:40:23 CET 2010


I impulsively wrote:

> The payload of a NaN in typical hardware implementations
> is quite small, because it has to fit into the exponent
> field.

...which turns out to be precisely wrong. Some day I'll
learn to wait until somebody else in the thread has checked
the facts for me before posting. :-)

-- 
Greg



More information about the Python-Dev mailing list