>>>Reza,
>>>
>>>Try:
>>>? 987.230%1
>>>? Mod(987.230,1)
>>
>>Though for negative numbers it won't return the value one would expect. The % operator will return the distance between the next integer on the left of the number and the number itself... so while the decimals for -8.133 may be 0.133, -8.133%1 will be 0.867.
>
>Ín that case, how about how I would solve it (from the head, without testing):
>
>x = 987.230
>y = ( x - int( x ) ) * 100
>
>OTOH, one might also consider: mod( abs( x ), 1 ) * 100
Actually, without multiplication with 100 - abs(x)%1 or mod(abs(x),1) is the way. The question was to get the decimal part, which is supposedly between 0 and 0.999999. Though for decimal numbers I wonder whether it would be between 0 and 0.999999 or between -1 and -0.00000...0001.