First thing first. Try having the thread in the right forum for better response.

Now about your query the comparison is done based on float and double and so check with the same data type and see what happens or else have a type cast.