Help with IF and Else

christop:
What if tempC is between 20 and 21, such as 20.5? It's a float variable, after all.

I though it was analog read results, my bad, yes it should be >= 21.0 or < 21.0

When using integer constants, will the float value get converted before the compare?