Why is NaN not equal to NaN? [duplicate]
The accepted answer is 100% without question WRONG. Not halfway wrong or even slightly wrong. I fear this issue is going to confuse and mislead programmers for a long time to come when this question pops up in searches. NaN is designed to propagate through all calculations, infecting them like a virus, so if somewhere … Read more