I'm using LabVIEW 8.5, When i tried to compare the result of difference of 5.1 and 5 (i.e 5.1-5) with .1 , the result was not equal. I used DBL representation.
Your computer is binary, your number system is decimal. There will be rounding problems, using floating numbers for equality will get you into trouble. You should do an in range check of 0.1 +- 0.1 % or so. See wikipedia for more info.