Y
Hacker News
new
|
ask
|
show
|
jobs
by
gnufx
87 days ago
Before isnan() the Fortran test for NaN was (x .ne. x), assuming an IEEE 754 implementation.
1 comments
pklausler
87 days 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.
link