decimal with default exponent

Imported from previous forum

With a decimal field template like this one -

My reading of it is - it requires a single PMap bit for the exponent. That PMap bit would then imply the presence of both the mantissa and the decimal field as a whole.

Would it also be required that a NULL value be present on the stream for the exponent if the PMap bit is set to 1 ? or can the exponent be skipped altogether ?

Thanks much,

Sai

Yes, a NULL exponent is required to indicate absence of the decimal value as a whole.

If the bit is not set, the value of the exponent is the inital value, which is -2 in your example and the value of the mantissa is in the stream.

If the bit is set, the value of the exponent is in the stream. If the exponent is not NULL, also the mantissa is in the stream. If the exponent is NULL, no mantissa will follow and the value is considered absent.

/David

With a decimal field template like this one -

My reading of it is - it requires a single PMap bit for the exponent.
That PMap bit would then imply the presence of both the mantissa and the
decimal field as a whole.

Would it also be required that a NULL value be present on the stream for
the exponent if the PMap bit is set to 1 ? or can the exponent be
skipped altogether ?

Thanks much,

Sai