rounding or truncating float

A == or != on a float is AWAYS (in any environment) a bad idea.

And how do you mean "How I will compare int with float in database?"? After you receiver the value from the database it's all in your Arduino and separate from the db. Then it's just all up to you and you decide the representation. The float in the DB and on the Arduino have no like whatsoever because you don't send the value as a float in the first place but a string representation of a part of the float. So you can just parse that as an integer on the Arduino to make the Arduino code easier. Nothing the server will notice...