2 ms·
Before isnan() the Fortran test for NaN was (x .ne. x), assuming an IEEE 754 implementation.
by gnufx 8mo ago
Before isnan() the Fortran test for NaN was (x .ne. x), assuming an IEEE 754 implementation.
- pklausler 8mo agoI 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.