[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/18e1e6ce - PLEASE DO NOT REPLY BY MAIL.]
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
-~----------~----~----~----~------~----~------~--~---