Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gnufx
· 8mo ago · 0 comments
Before isnan() the Fortran test for NaN was (x .ne. x), assuming an IEEE 754 implementation.
Comments
[–]
pklausler
8mo ago
I wish that (still) worked reliably, but it can unfortunately get one into trouble with some compilers and some optimization modes that assume that NaNs are undefined behavior.