4 ms·
As another comment points out, this isn’t JavaScript related, it’s just how the semantics of NaN in floating point works. Because, conceptually, 0/0 is not equ
by anamexis 3y ago
As another comment points out, this isn’t JavaScript related, it’s just how the semantics of NaN in floating point works.
Because, conceptually, 0/0 is not equal to -inf + inf. NaN is not a semantic value (it is a lack of one), so you can’t do semantic comparisons with it.