Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How does MOD() work?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How does MOD() work?
Miscellaneous
Thread ID:
00302170
Message ID:
00302170
Views:
54
From the VFP5 help file...

? MOD(36,10) && Displays 6
? MOD((4*9), (90/9)) && Displays 6
? MOD(25.250,5.0) && Displays 0.250

I agree with the first two but why does the last
one display .250 when 25.25/5=5.05?

Similarly ? mod(1999,4) displays 3 instead of 75.

What am I missing?
Next
Reply
Map
View

Click here to load this message in the networking platform