Skip to content

Commit c22aaed

Browse files
committed
Working.
1 parent ea51617 commit c22aaed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

draft-mcnally-deterministic-cbor.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ This practice still produces well-formed CBOR according to the standard, and all
148148
}
149149
~~~
150150

151+
## Reduction of Negative Zero.
152+
153+
{{IEEE754}} defines a negative zero value `-0.0`. dCBOR encoders that support floating point MUST reduce all negative zero values to the integer value `0`. dCBOR decoders MUST reject any negative zero values.
154+
151155
## Reduction of NaNs and Infinities.
152156

153157
{{IEEE754}} defines the `NaN` (Not a Number) value {{NAN}}. This is usually divided into two types: *quiet NaNs* and *signalling NaNs*, and the sign bit is used to distinguish between these two types. However, the specification also includes a range of "payload" bits. These bit fields have no definite purpose and could be used to break CBOR determinism.

0 commit comments

Comments
 (0)