General information
Category:
Coding, syntax & commands
Title:
INT(MOD(nNumber,2)) problem
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only