News for hackers. Stuff that matters.
Re:Comparisons in C++20 by maxwellburson on Sunday July 28, 2019 @11:15PM (#20551262)
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.
Re:Comparisons in C++20 by magicalhippo on Monday July 29, 2019 @08:49AM (#20554018)
This is default IEEE 754 behavior.

https://en.wikipedia.org/wiki/NaN