View Single Post
Old Apr 9th, 2007, 2:27 AM   #4
ptmcg
Newbie
 
Join Date: Aug 2005
Location: Austin, TX
Posts: 15
Rep Power: 0 ptmcg is on a distinguished road
Don't forget range() creates a list of all of the entries, so range(1,2,1e-9) would create a billion-entry list. If instead you are trying to iterate a billion times (and I hope you have some time on your hands!), you may be better off with "for i in xrange(0,1e9): f = float(i)/1e9" and then use f as your 0-to-1-by-billionths counter.
-- Paul
ptmcg is offline   Reply With Quote