MATLAB: Wrong values with greater than, equal and less than or equal functions

equalfaq6.1greater thanless than and equal

[EDIT: Tue May 17 14:40:06 UTC 2011 – Reformat – MKF]
When I use the greater than function, equal function and less than or equal function I obtain wrong values, for example:
>> 1.6-1.5>.1
ans =
1
>> (1.6-1.5)>.1
ans =
1
>> (1.6-1.5)>0.1
ans =
1
>> eq((1.6-1.5),0.1)
ans =
0
>> gt((1.6-1.5),0.1)
ans =
1
>> le((1.6-1.5),0.1)
ans =
0
Related Question