I'm looking for a function like range except that the step is a fraction of the previous number generated. So if the fraction was 99/100 the set of numbers might be something like this: 100, 99, 98.01... 0.001
Would this be more efficiently done with a for-loop and range-like function or with just a while-loop?
The code I have so far:
stop = .001
current = 100
while current > stop:
#code
current *= 0.99