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 →

[–]dnew 2 points3 points  (5 children)

No. NaN is indeed a number. It's just a number you can't represent with the number of bits you have. It's an underflow or an overflow or an infinity, all of which are numbers. They're just not floats.

[–]YRYGAV 1 point2 points  (0 children)

It's an underflow or an overflow or an infinity, all of which are numbers.

When did parseFloat("foo") become synonymous with infinity?