[Python-Dev] Why is nan != nan?
Curt Hagenlocher
curt at hagenlocher.org
Thu Mar 25 16:01:54 CET 2010
On Thu, Mar 25, 2010 at 7:54 AM, Mark Dickinson <dickinsm at gmail.com> wrote:
>
> Hmm. I take it back. I was being confused by the fact that sqrt(nan)
> returns a nan with a new identity; but it does apparently preserve
> the payload. An example:
I played with this some a few months ago, and both the FPU and the C
libraries I tested will preserve the payload. I imagine Python just
inherits their behavior.
--
Curt Hagenlocher
curt at hagenlocher.org
More information about the Python-Dev
mailing list