Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MOD() - looks like a bug
Message
From
19/02/2002 07:04:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00621577
Message ID:
00621812
Views:
23
>The MOD() finction is not integer arithmetic finction. It operates on the numeric expression and produces the numeric value as result. See help for details.

One interesting case where mod() can be used is to reduce angles to a standard value between 0 and 2*pi(). E.g., 370 degrees is the same as 10 degrees; but in higher mathematics (and in most programming languages), angles are expressed in radians. Dividing mod 2*pi() gives the "normalized" angle.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform