Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MOD() - looks like a bug
Message
De
19/02/2002 07:04:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00621577
Message ID:
00621812
Vues:
10
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform