If I recall, there's a problem comparing floats for equality because of how they are stored and computed. They are not exact values; hence the inequality. I would substract both numbers together and check if the difference is in a certain range like this:

problem with floats in conditional statements

here a=0.7 is not obviously less than 0.7...
Logically the output should be printed as "false", but its being printed as true...
i am not able to figure out the logic.. can somebody please tell me how the statement is interpreted...