I was playing around with a Mandrelbot script when I noticed that For...Next Loops do not accept Double Integers, i.e.:

code:
Break On
For $x = 1.1 to 2.1 step 0.1
$x ?
Next

I was about to make post a topic in Suggestions about it, but was wise enough to run it across Jens first. The short of it is...
quote:
Numbers can only be represented digitally with an accuracy of EPS. Thus, a number x+EPS/2 canot be represented and will be either end up being x or x+EPS

His suggestion was to use a Do...Until or While...Loop loop. So, I tried this...
code:
$x = 1.2

While $x > -1.2
$x ?
$x = $x - 0.1
Loop

...which has some interesting results when 0 is expected.

Thoughts????

[ 20. May 2003, 20:47: Message edited by: Chris S. ]