Hacker News new | past | comments | ask | show | jobs | submit login

I think that’s not the full story. The standard says:

A quiet NaN bit string should be encoded with the first bit (d1) of the trailing significand field T being 1. A signaling NaN bit string should be encoded with the first bit of the trailing significand field being 0

That does use “should” (not “shall”) and is described as a “preferred encoding”, so it’s standards-compliant to do something else, but it’s not recommended.




Sure, that's in the 2008 update. But OP was lamenting that the original IEEE-754 didn't encode qNaN/sNaN with the sign bit, no?


Yeah, you’re right that was the 2008 version. Fair enough.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: