to be able to make :
Code: Select all
a.f=20.2
b.f=2.5
c.f=2.2
for t.f=c.f to a step b.f
debug t
next t
WITH FOR-next not another thing!!
Code: Select all
a.f=20.2
b.f=2.5
c.f=2.2
for t.f=c.f to a step b.f
debug t
next t
Euch! If this was implemented i hope that the type would be read from the loop by the compiler and the relevant ASM used rather than new 'F' commands.Kaeru Gaman wrote:IF this would be implemented some day, I strongly request a new command like ForF, ToF, NextF.
Code: Select all
For x = 22 To 202 Step 25
Value.f = x / 10
Debug "Float: " + StrF(Value) + " - Double: " + StrD(Value)
Next x
Code: Select all
EnableExplicit
Define.l a,b,c,t
a=20.2*10.0
b=2.5*10.0
c=2.2*10.0
For t=c To a Step 2
Debug t*0.1 ;say hi to float rounding errors :P
Next t