Skip to content

Commit 80d346c

Browse files
committed
Decimal representation for optional mantissa with non-constant exponent #62
1 parent 9baf772 commit 80d346c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

v2-0-RC1/doc/02FieldEncoding.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,10 @@ The default data ranges and null indicator are listed below for each
323323
decimal encoding.
324324

325325
A message schema may optionally specify a more restricted range of valid
326-
values for a field. For optional fields, a special mantissa value is
327-
used to indicate that a field value is null.
326+
values for a field.
327+
328+
For all optional decimal fields, a special mantissa value is
329+
used to indicate that a field value is null. For floating-point decimals, the exponent should also be set to its null indicator.
328330

329331
| Schema attribute | decimal | decimal64 | decimal32 |
330332
|------------------|------------------------------------------:|------------------------------------------:|------------------------------------------:|
@@ -397,6 +399,10 @@ Wire format of decimal 123.45 with 2 significant decimal places.
397399

398400
`3930000000000000fe`
399401

402+
Wire format of null floating-point decimal.
403+
404+
`ffffffffffffffffff`
405+
400406
Wire format of decimal64 123.45 with 2 significant decimal places.
401407
Schema attribute exponent = -2
402408

0 commit comments

Comments
 (0)