Discussion Forums

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.)
>


Can Percentage data type be negative?
Steve Wilkinson / Cornerstone Technology Limited   27 Mar 2010 5:14AM ET
Re: Can Percentage data type be negative?
Richard Labs / CL&B Capital Management, LLC   27 Mar 2010 6:49PM ET
Re: Can Percentage data type be negative?
Steve Wilkinson / Cornerstone Technology Limited   29 Mar 2010 5:46AM ET
Re: Can Percentage data type be negative?
Zoltan Feledy / State Street Global Advisors   29 Mar 2010 6:13AM ET
Re: Can Percentage data type be negative?
Steve Wilkinson / Cornerstone Technology Limited   29 Mar 2010 6:18AM ET
Re: Can Percentage data type be negative?
Lisa Taikitsadaporn / Brook Path Partners, Inc.   29 Mar 2010 7:40AM ET