|
|
float and double do not store every possible floating-point number. In particular, 1.65 is a number that cannot cannot be stored in a variable of either type exactly. float is 1.64999997615814208984375, and the closest double is 1.649999999999999911182158029987476766109466552734375