Dragan,
Yes, you are right. If Reza wants to get the decimal part of both negative and positive numbers, Abs() should be applied beforehand.
Thanks,
Ben
>>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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only