Assuming an IEEE-754 representation, the literals 1.7f and 1.7 stand for the following values:
1.7f == 1.7000000476837158203125
1.7 == 1.6999999999999999555910790149937383830547332763671875
Clearly, these are not the same value, and thus they compare as false.