1.7 is decimal. In binary form, it has a non-finite representation.
Therefore, 1.7 and 1.7f are different.
Heuristic proof: when you shift bits to the left (i.e., multiply by 2), in the end it will be an integer if the binary representation were "finite".
But in the decimal sequence, multiply 1.7 by 2 and again: you will get only non-integer numbers (the decimal part will cycle between .4 , .8 , .6 and .2 ). Therefore 1.7 is not a sum of powers of 2.
source share