Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mod() function Bug?
Message
From
22/09/2006 21:04:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/09/2006 14:30:15
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01156435
Message ID:
01156661
Views:
16
>Thanks, this could have been mentioned in docs so it would not be a surprise when working with negative numbers.

I'd want it mentioned in the docs if it returned either 1 or -1. That mod(-13,4)=3 is mathematically correct, i.e. that's the expected value, no surprises there. It's just that most of us tend to forget that particular neck of the mathematical woods :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform