[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/2a1b55f3 - PLEASE DO NOT REPLY BY MAIL.]
if the value is >= 0 you add 1 when encoding, subtract 1 when decoding
(sections 10.4, 10.6.1)
> exponent is nullable
>
> > I have not found any expression about subtracting 1 in section 10.6.2.
> > Yes, the last byte is -18 :);
> >
> > > Maybe you missed subtracting 1? (see spec section 10.6.2) (BTW,
> > > shouldn't byte 4 be -18?)
> > >
> > > Best, Rolf
> > >
> > > > Hello, I have the next template for decimal: <decimal name="Test1"
> > > > id="1" presence="optional"> <exponent> <default value="-2"/>
> > > > </exponent> <mantissa/> </decimal> For specification p.6.2.2
> > > > exponent is int32 and mantissa int64.
> > > >
> > > > I have, for example the next input decimal value : exponent =0 and
> > > > mantissa = 58350, if I am doing of encode for this decimal use
> > > > rules for int32 and int64 I am receiving the next array of
> > > > bites{[-128,3,71,-
> > > > 8]}. And this wrong result :(. How I do test:
> > > > - I have a original fast message
> > > > - I am doing of decode of FAST messgage to FIX message
> > > > - I am doing of encode of recived FIX message to FAST message
> > > > - Equal result And input Array is equals to {[-127,3,71,-8]} ,
> > > > and output array is equals to {[-128,3,71,-8]}. What do I did
> > > > wrong?
[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
-~----------~----~----~----~------~----~------~--~---