Another Increment bug in repeat loops
DunbarX at aol.com
DunbarX at aol.com
Fri Nov 20 18:24:09 EST 2009
Keeping startValues constant but just changing the increment value"
on mouseUp
repeat with n = 0 to 1 step 0.1 -- 0 is a bad starvalue
put "," after loopCounter
end repeat
put the number of items of loopCounter
end mouseUp
With an increment of 0.1, and extra loop is run (12)
With an increment of 0.2, the correct number of loops is run (6)
With an increment of 0.5, the correct number of loops is run (3)
The error with "0.1" only occurs with the already posted bad startValues.
None occur with good startValues.
I didn't try imaginary numbers.
Craig Newman
More information about the use-livecode
mailing list