start = 0.65
end = 0.75
step = 0.01
while start <= end:
print (start)
start += step
But why am I getting below? really
0.65
0.66
0.67
0.68
0.6900000000000001
0.7000000000000001
0.7100000000000001
0.7200000000000001
0.7300000000000001
0.7400000000000001
where did 0.0000000000000001 come from?
thanks a lot!