Subject Re: [ib-support] How to split a number
Author Ann Harrison
At 02:43 PM 2/13/2001 +0000, you wrote:

>If I have let say: 5,75
>I'd like to split in 5 and 0,75.

cast ((5,75 - 0,50) as integer = 5

5,75 - cast ((5,75 - 0,50) as integer = 0,75

Cast rounds rather than truncating - thus the
subtraction.


Regards,

Ann
www.ibphoenix.com
We have answers.