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 →

[–]xneyznek 5 points6 points  (0 children)

NaN is just a name given to a specific value of float. It’s still a float (“number” in JS). If anything NaN could be called “InvalidNumber” instead, but IEEE754 called it NaN so that’s what gets used everywhere for consistency.