In my program (VFP5) I wrote the following statement inside a loop to sum a certain values in one variable called mMONTHLY_REMAIN :
mNET=0
mMONTHLY_REMAIN=0
DO WHILE .....
..
..
..
mNET=(((INT(ROUND((mMAN_MONTH*1.833),15)*1000))/1000)-mMONTHLY_VACATION)
mMONTHLY_REMAIN = mMONTHLY_REMAIN + mNET
..
..
ENDDO
NOTE: mMAN_MONTH always should contains a value >0 and <=1
NOTE: mMONTHLY_VACATION may contains a value >=0
After the loop mMONTHLY_REMAIN contains a zero value despite mNET contains a non zero value. WHY ?
I dont understand why it's happen ????
Thanks for any comments
mNET=0
mMONTHLY_REMAIN=0
DO WHILE .....
..
..
..
mNET=(((INT(ROUND((mMAN_MONTH*1.833),15)*1000))/1000)-mMONTHLY_VACATION)
mMONTHLY_REMAIN = mMONTHLY_REMAIN + mNET
..
..
ENDDO
NOTE: mMAN_MONTH always should contains a value >0 and <=1
NOTE: mMONTHLY_VACATION may contains a value >=0
After the loop mMONTHLY_REMAIN contains a zero value despite mNET contains a non zero value. WHY ?
I dont understand why it's happen ????
Thanks for any comments