Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INT(MOD(nNumber,2)) problem
Message
From
14/10/2002 16:06:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
INT(MOD(nNumber,2)) problem
Miscellaneous
Thread ID:
00711105
Message ID:
00711105
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform