[Numpy-discussion] What is the sign of nan?

Pete Forman pete.forman@westerngeco....
Tue Sep 30 06:10:10 CDT 2008

I've seen no mention in this thread of IEEE Std 754-2008 which was
published last month.  minNum(x, y) and maxNum(x, y) return a
floating-point number if the other argument is NaN.

The OP's question is about the sign of NaN.  In 754r it can be tested,
copied, etc.  Operations involving NaNs propagate the payload but not
the sign bit AFAIK.
Pete Forman                -./\.-  Disclaimer: This post is originated
WesternGeco                  -./\.-   by myself and does not represent
pete.forman@westerngeco.com    -./\.-   the opinion of Schlumberger or
http://petef.22web.net           -./\.-   WesternGeco.

More information about the Numpy-discussion mailing list