4 ms·
As others have pointed out, NaN == NaN being false is not surprising (at least according to IEEE floating point semantics ;). I kinda makes sense if you consid
by epidemian 13y ago
As others have pointed out, NaN == NaN being false is not surprising (at least according to IEEE floating point semantics ;).
I kinda makes sense if you consider that both 0/0 and Infinity0 evaluate to NaN. `0/0 == Infinity0` being true would be an even weirder behaviour.