Discussion Forums

Optional Decimal Logic
Mike Srdanovic
28 Jun 2009 5:48PM ET

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


Optional Decimal Logic
Mike Srdanovic   28 Jun 2009 5:48PM ET
Re: Optional Decimal Logic
Rolf Andersson / Pantor Engineering   29 Jun 2009 12:19AM ET
Re: Optional Decimal Logic
Mike Srdanovic   30 Jun 2009 6:50AM ET
Re: Optional Decimal Logic
Rolf Andersson / Pantor Engineering   30 Jun 2009 8:24AM ET