Fix in checking value for float