Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MOD() - looks like a bug
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00621577
Message ID:
00621596
Vues:
16
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.

>Hello All.
>I have VFP7, wrote a short function for generating pseudo-random values within the specified range. What i’ve noticed is that MOD() sometimes returns fractions, not whole numbers. Run the code below a dozen times and you will see that the MOD(nResult,nScissors) sometimes returns fractions. Try something simple – CertainRand(2,8)
>Best wishes.
>Kamil.
< SNIP >
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform