General information
Category:
Coding, syntax & commands
Title:
How does MOD() work?
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
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