[This message was posted by Rolf Andersson of Pantor Engineering <[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/8e52d800 - PLEASE DO NOT REPLY BY MAIL.]
Mike, example 1 is correct but example 2 is unclear. The way you indicate an absent (from an application perspective) optional decimal field is to use a NULL exponent. (Please refer to section 10.6.2) /Rolf > All, > > I'm have a bit of an issue understanding the correct logic concerning > Optional Decimals with inidividual operators. Could someone reply to the > correctness of the 2 cases below? > > Thanks, Mike > > > 1) Mandatory Decimal with Individual operators: Presence: Exponent -> > Mandatory, Mantissa -> Mandatory Operator: Exponent -> Default(0), > Mantissa -> Delta Logic: > > Decode_u32( Exponent ); // Bit Required Decode_u32( Mantissa ); > // No Bit Required > > 2) Optional Decimal with Individual operators: Presence: Exponent -> > Optional, Mantissa -> Mandatory (IFF Exponent is present in stream) > > ExponentPresentInStream = Decode_u32( exponent )// Bit Required > for Exponent if( ExponentPresentInSteam ) Decode_u32( Mantissa > ); // No Bit Required [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 -~----------~----~----~----~------~----~------~--~---
