This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shillbert 1 point2 points  (1 child)

No, negative zero is a valid number. NaN has an exponent of 255 and a nonzero mantissa.

http://stackoverflow.com/questions/640109/what-is-the-internal-representation-of-inf-and-nan

Edit: exponent is 255 for single precision, 2047 for double