Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
maxwellburson
· 7y ago · 0 comments
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.
Comments
[–]
magicalhippo
7y ago
This is default IEEE 754 behavior.
https://en.wikipedia.org/wiki/NaN