3 ms·
> Also, how do NaN and infinity fit in? I'm guessing they're special cases of Number types? Those are magical values from IEEE 754. IEEE 754 is also the reaso
by ahoge 13y ago
> Also, how do NaN and infinity fit in? I'm guessing they're special cases of Number types?
Those are magical values from IEEE 754.
IEEE 754 is also the reason why there is a signed zero or why division by zero results in +/- Infinity.
>>> 0 === -0
true
>>> 1/0 === 1/-0 // compares Infinity with -Infinity
false