3 ms·
It would be really depressing if java normalized NaNs, but i wouldn't put it past some author thinking it was a good idea.
by jnordwick 9y ago
It would be really depressing if java normalized NaNs, but i wouldn't put it past some author thinking it was a good idea.
- kodablah 9y agoIt's not that they normalize them per se, it's just that NaN bit patterns are mostly undefined behavior. I think the JVM spec (or JLS, I forget) implies that you can't really rely on the NaN bit patterns being retained. Double.longBitsToDouble mentions that some processors might not return a double in the same bit pattern as passed.