|
Algorithmic Trading
< Previous Next >
Re: Can Percentage data type be negative?
Lisa Taikitsadaporn / Brook Path Partners, Inc. <> 29 Mar 2010 7:40AM ET Steve, to your question about the wire format for Percentage, here's the definition of the Percentage datatype:
--
float field representing a percentage (e.g. 0.05 represents 5% and 0.9525 represents 95.25%). Note the number of decimal places may vary
--
On the wire send -0.25 to represent -25%
> Thanks Rick, but then how does one send a negative percentage, i.e.,
> display -25% and send -0.25 on the wire?
>
> (This is a real world question from a current project.)
>
Re: Can Percentage data type be negative? Lisa Taikitsadaporn / Brook Path Partners, Inc. 29 Mar 2010 7:40AM ET |