Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INT(MOD(nNumber,2)) problem
Message
De
14/10/2002 16:06:13
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
INT(MOD(nNumber,2)) problem
Divers
Thread ID:
00711105
Message ID:
00711105
Vues:
54
I am using vfp 6.0 no service pack at the moment on a W2k machine.

within my code, I have a line that returning the incorrect numbers:

This returns a 2 which should not be possible when lnchecktme1 is 20.
lnoddevenflg1 = MOD(lnchecktme1, 2)

This returns a 0 when lnchecktme1 is 35 even though in debug MOD(lnchecktme1,2) equals 1.0000

lnoddevenflg1 = INT(MOD(lnchecktme1, 2))

can anyone help with this?

TIA,
Beth
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform