ahhhh perfect - thanks tore - i knew both of these functions but did not reason that by dividing by 1 you have no remainder unless of course you have a fraction afterwards -- very clever.
k
and don't understand how the 1 eliminates the integer.
is not mod(20,3) will show the remainder of 20 divided by 3
>>N=301.45
>>? n-int(n)
>>
>>Just curious - is there a way of displaying .45 without substracting the integer.
>>
>>tnx
>>k
>
>Yes, there are two ways built in
>?n%1
>?mod(N,1)