Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mod() function Bug?
Message
From
22/09/2006 10:30:37
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Mod() function Bug?
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01156435
Message ID:
01156435
Views:
74
The mod command gives stange results when done this way:
Mod(-13,4). I would expect this to return either 1 or -1 but it returns 3.
Visual Basic return -1 for this command but Ruby return the same thing as VFP. Can someone explain this to me.... Thanks.
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Next
Reply
Map
View

Click here to load this message in the networking platform