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

Pete Forman pete.forman at westerngeco.com
Tue Sep 30 07:10:10 EDT 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 at westerngeco.com    -./\.-   the opinion of Schlumberger or
http://petef.22web.net           -./\.-   WesternGeco.




More information about the NumPy-Discussion mailing list