Possible Duplicate:
Why are these numbers not equal?
The below expression, which evaluates to 0.1, is considered larger than 0.1.
> round(1740/600,0) - 1740/600
[1] 0.1
> (round(1740/600,0) - 1740/600) <= 0.1
[1] FALSE //???!!???
> (round(1740/600,0) - 1740/600) <= 0.1000000000000000000000000000000000000001
[1] TRUE
Thinking that the issue might be due to rounding I tried this with the same result:
> 3 - 2.9
[1] 0.1
> (3 - 2.9) <=0.1
[1] FALSE
So, what gives and how do I fix it without fudging the cutoff?