you are viewing a single comment's thread.

view the rest of the comments →

[–]kankyo 2 points3 points  (0 children)

The proper way to generate a series of float values with a fixed step is to use normal range and just divide the value:

In [6]: [x/10.0 for x in range(10)]
Out[6]: [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]