Imported from previous forum
I have following decimal in a template:
(decimal name=“MDEntryPx” id=“270” presence=“optional”)
(exponent)
(/exponent)
(mantissa)
(delta /)
(/mantissa)
(/decimal)
if MDEntryPx= 35 which of following encode is correct?
- exponent = 0 mantissa = 35
- exponent = 1 mantissa = 35 (because MDEntryPx optional)
Douglas,
alternative 2 is correct.
exponent=0 represents a NULL value (in which case no mantissa follows)
exponent=1 represents a zero value
(with delta coding, mantissa=35 is correct given that it is the first occurrence or the previous mantissa value is 0 (zero))
/Rolf
I have following decimal in a template:
(decimal name=“MDEntryPx” id=“270” presence=“optional”) (exponent)
(/exponent) (mantissa) (delta /) (/mantissa) (/decimal)if MDEntryPx= 35 which of following encode is correct?
- exponent = 0 mantissa = 35
- exponent = 1 mantissa = 35 (because MDEntryPx optional)