I tried to loop from 0.1 to 2.0 and then print the output to the console.. But I got strange output like these:
0.1 0.2 0.30000000000000004 0.4 0.5 0.6 0.7 0.7999
That's a bug (on your side).
Do not use floating point numbers until you learn what they are and how they work.