[This message was posted by Dale Wilson of Object Computing, Inc 
<[email protected]> to the "FAST Protocol" discussion forum at 
http://fixprotocol.org/discuss/46. You can reply to it on-line at 
http://fixprotocol.org/discuss/read/5287c1d8 - PLEASE DO NOT REPLY BY MAIL.]

Hi Shashank,

You asked:
> In template, we have decimal instruction with single field operator:
> [Please read “(“ as “<” and “)” as “>”]
> 
> (decimal id="1" presence="optional" name="Price") (copy/) (/decimal)

> <SNIP>

> Whether my understanding about "Decimal having single field operator" is
> correct? Please feedback.

You are correct.  Only one PMAP bit is used in this case.

If pmap == 0 then the previous values of both the exponent and mantissa are 
used.
if pmap == 1 and the exponent is null then the optional field does not exist in 
the decoded message.
if pmap == 1 and the exponent is not null, then the mantissa should be present 
-- mantissa is NOT a nullable value.

------------------------
One case where two presence bits are used is:

 (decimal presence="mandatory")
   (exponent)
     (default/)
   (/exponent)
   (mantissa)
     (copy/)
   (/mantissa)
  (decimal)

If I changed the above example to have presence="optional" then the number of 
PMAP bits would change dynamically depending on whether the exponent was 
nullable.

Dale Wilson
--
Principal Software Engineer
Author of the QuickFAST open source implementation of FAST
  http://www.quickfast.org


[You can unsubscribe from this discussion group by sending a message to 
mailto:[email protected]]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Financial Information eXchange" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fix-protocol?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to