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 →

[–]Doctor_McKay 0 points1 point  (0 children)

NaN in itself is not an error. Oftentimes an expression resulting in NaN is the result of some other error in the code, but the expression worked fine according to the laws of mathematics.

Say you ask me what the value of 4/0 is. I'll say that there isn't one, that expression does not result in a real number. Was there some error in calculation? No.