Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remainder
Message
From
21/12/2012 01:50:12
 
 
To
21/12/2012 01:39:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01560368
Message ID:
01560370
Views:
71
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform