logoalt Hacker News

AlotOfReadingtoday at 8:34 PM1 replyview on HN

At the standards level, NaN payload propagation isn't guaranteed, regardless of any other issues.


Replies

themafiatoday at 9:04 PM

> payload propagation isn't guaranteed

Yes and no:

`If an operation has a single NaN input and propagates it to the output, the result NaN's payload should be that of the input NaN (this is not always possible for binary formats when the signaling/quiet state is encoded). If there are multiple NaN inputs, the result NaN's payload should be from one of the input NaNs; the standard does not specify which.'