Skip to content

Commit

Permalink
Clarify that the NOT RECOMMENDED pertains to the application use...
Browse files Browse the repository at this point in the history
...of NaNs, not the Preferred serialization/CDE encoder.
  • Loading branch information
cabo committed Jul 21, 2024
1 parent 45cafc6 commit a9b1067
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions draft-ietf-cbor-cde.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ Specifically, CDE specifies (in the order of the bullet list at the end of {{Sec
in the NaN payload.
Further clarifying a "should"-level statement in Section 6.2.1 of
{{IEEE754}}, the CBOR encoding always uses a leading bit of 1 in the
significand to encode a quiet NaN; encoding of signaling NaN is NOT
RECOMMENDED but is achieved by using a leading bit of 0.
significand to encode a quiet NaN; the use of signaling NaNs by
application protocols is NOT RECOMMENDED but when presented by an
application these are encoded by using a leading bit of 0.

Typically, most applications that employ NaNs in their storage and
communication interfaces will only use a quiet NaN with payload 0,
Expand Down

0 comments on commit a9b1067

Please sign in to comment.