[Numpy-discussion] generating float sequences

Chris Fonnesbeck listservs@mac....
Fri Aug 22 20:35:49 CDT 2008

Is there any prospect for easily getting ranges of floats in numpy, rather than
just integers? In R, for example, you can specify a decimal value for the step
size. It would be great to be able to do the following:

arange(0, 100, 0.1)

for a sequence from 0 to 100 in steps of 0.1. It seems rather unpythonic to 
have to do this:

arange(0, 1000)/10.

More information about the Numpy-discussion mailing list