I wish to generate a list with these value:
[0,0.01,0.02...0.49]
and I though that this was the correct way to do it:
[0.01*i for i in range(50)]
But to my horror I observed the following:
>>> 35*0.01
0.35000000000000003
>>> float("0.35")
0.35
What am I doing wrong? If I understand correctly It seems 35*0.01 does not give the closest floating point representation of 0.35 but float("0.35") does.