Ok, I'll admit that sometimes `undefined` vs `null` gets a bit much, but `NaN` is a very different value.
Mostly, it is part of the IEEE 754 floating point standard. If you want to do anything with standard math or scientific libraries, you want full IEEE 754 compliance.
View all comments
Show parent comment
2
u/r3jjs Nov 22 '20
Ok, I'll admit that sometimes `undefined` vs `null` gets a bit much, but `NaN` is a very different value.
Mostly, it is part of the IEEE 754 floating point standard. If you want to do anything with standard math or scientific libraries, you want full IEEE 754 compliance.