3 ms·
While I don't know about this specific case, I do know in some languages, like JavaScript, NaN poisons any operation it is part of. So any operation on it is Na
by maxwellburson 7y ago
While I don't know about this specific case, I do know in some languages, like JavaScript, NaN poisons any operation it is part of. So any operation on it is NaN, and comparisons to it are false.
- magicalhippo 7y agoThis is default IEEE 754 behavior. https://en.wikipedia.org/wiki/NaN https://en.wikipedia.org/wiki/NaN