43.0k views
4 votes
What does NaN mean?

User Armut
by
7.2k points

2 Answers

4 votes
NaN stands for Not a Number.

This error appears for a value that cannot be represented by a number. NaN errors usually appear for floating-point calculations that aren't properly accounted for.
User MisterMetaphor
by
6.9k points
2 votes
Not A Number, when you're using a variable that has a bad value due to overflow or lack of assignment.
User Dkniffin
by
7.9k points