Imported from previous forum
I implemented the logic of decoding the decimal with individual operators for exponent and mantissa. It worked fine.
However when I examine the logic of “decimal field contain a field operator for the whole decimal”, I can hardly find any decoding logic difference between the two presentation of decimal.
Is it true the following two templates can be treated the same in decoding?
first template
second template
If it’s true, then I also translate the template with the first format into the second one when building the dictionary and then use the same decoding logic to deal with it.
thanks for your advise.
-Kevin Li
Hi Kevin,
no, you cannot not use the same logic.
The variant with optional presence and separate operators:
- applies the operator separately for the exponent and mantissa
- uses 1-2 pmap entries depending on the exponent value
Pls have another look at sections 6.2.2 and 10.5.1 respectively
Hope this helps,
Rolf
I implemented the logic of decoding the decimal with individual
operators for exponent and mantissa. It worked fine.However when I examine the logic of “decimal field contain a field
operator for the whole decimal”, I can hardly find any decoding logic
difference between the two presentation of decimal.Is it true the following two templates can be treated the same in
decoding?first template
second template
If it’s true, then I also translate the template with the first format
into the second one when building the dictionary and then use the same
decoding logic to deal with it.thanks for your advise. -Kevin Li