Hi, I've experience that problem before
some how the IF statement works better
when using I variables,
I guess the computer rounds off after
certain number of decimal places
try if possible to use I variable
you might think the value is 0.000
but it might be 0.0001 which is not 0