From: Alan Chen Date: 2002-06-11T03:56:30+09:00 Subject: Re: step On Tue, Jun 11, 2002 at 02:42:33AM +0900, Kontra, Gergely wrote: > Hi! > > I just discovered step, but if I can see (in 1.6) it works on just > integers:( > Is there any reason why it cannot handle floats? > > Gergo I'm guessing because of the inaccuracy of floats. If you define a step size smaller then the minimum accuracy of your range, the behavior becomes undefined. For example if you did: 10E9.step(10E10, 10E-9) The result would likely be an infinite loop (or maybe an underflow). -- Alan Chen Digikata LLC http://digikata.com