[Numpy-discussion] generating float sequences

Nathan Bell wnbell@gmail....
Fri Aug 22 21:08:43 CDT 2008


On Fri, Aug 22, 2008 at 9:35 PM, Chris Fonnesbeck <listservs@mac.com> wrote:
> 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)
>

It appears to be great already :)

In other words, arange(0, 100, 0.1) does exactly what you want.

-- 
Nathan Bell wnbell@gmail.com
http://graphics.cs.uiuc.edu/~wnbell/


More information about the Numpy-discussion mailing list