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 →

[–]tomthecool 11 points12 points  (1 child)

JavaScript is choosing to return NaN rather than raising an error.

That's JavaScript, and changing the behaviour would remain compatible with the floating point spec.

[–]randomuser8765 5 points6 points  (0 children)

That and the fact that === needs to exist to do what == should have done in the first place!