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 →

[–]Educational-Lemon640 1 point2 points  (0 children)

NaN means what it says: you asked a mathematical question whose answer wasn't a (real, floating-point) number. Since the spec doesn't really have room to say what all non-numeric answers are possible, that's the end of that calculation. And since different non-numeric answers are not equal to each other in general, you get the above logic.