Skip to content

Decimal representation for optional mantissa with non-constant exponent #62

@RFrenkel

Description

@RFrenkel

Hi Don,
Which way is the right way to specify null-able decimal with not fixed exponent?
Do we specify only mantissa null value or the exponent also?

Will this work?
composite name="decimal" >
type name="mantissa" primitiveType="int64" presence="optional" nullValue="9223372036854775807" />
type name="exponent" primitiveType="int8" />

Or
composite name="decimal" >
type name="mantissa" primitiveType="int64" presence="optional" nullValue="9223372036854775807" />
type name="exponent" primitiveType="int8" presence="optional" nullValue="127" />

If there is no need to provide null value for exponent, then what should be the exponent value on the wire with null mantissa?

I looked up the spec and couldn't find examples of null-able decimals.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions