[HN Gopher] Bit Patterns of Float
___________________________________________________________________
Bit Patterns of Float
Author : ingve
Score : 14 points
Date : 2021-09-06 06:04 UTC (1 days ago)
(HTM) web link (quuxplusone.github.io)
(TXT) w3m dump (quuxplusone.github.io)
| dvt wrote:
| I'm not sure why the IEEE's original floating point specs didn't
| manage to make the NaN "quiet" (position 22) bit be the the
| leading "sign" bit -- although I'm sure there's a good reason.
| The NaN vs -NaN distinction is purely representative and has no
| semantic implications. As opposed to negative infinity or
| negative zero, for example.
|
| Also worth adding is that NaN comparisons will break
| catastrophically when using gcc's -ffast-math`.
___________________________________________________________________
(page generated 2021-09-07 23:00 UTC)