[portland] Step Value in range()
Rich Shepard
rshepard at appl-ecosys.com
Fri May 2 19:01:23 CEST 2008
On Fri, 2 May 2008, Dylan Reinhardt wrote:
> I don't know of one off-hand... but you could add a few zeroes to your
> range and divide them off with a list comprehension, ex:
>
> [ i/1000.0 for i in range(10) ]
>
> To get the floats 0 to .9, stepping .001
I'll stick with numpy's arange(), then.
Thanks, Dylan,
Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the Portland
mailing list