This is in fact exactly my idea with the PRECISION n.
Code: Select all
Precision=2
n=12345
Debug n/Pow(10,Precision)

Code: Select all
Precision=2
n=12345
Debug n/Pow(10,Precision)
Code: Select all
Precision=2
For n = 12300 To 12345 Step 15
Debug n/Pow(10,Precision)
Next
is still a good request, because:The Step of a For Next loop is limited to an integer constant. There are occasions where an integer is required instead of a constant.
Code: Select all
Precision.i=2
A.d=123.00
Z.d=123.45
S.d=1.5
Start.i=A*Pow(10,Precision)
Stop.i =Z*Pow(10,Precision)
Stap.i =S*Pow(10,Precision)
For n = Start To Stop Step Stap
Debug n/Pow(10,Precision)
Next
Add STEP to that list. That's the most elegant solution and easily worked around with WHILE or REPEAT if the calculation involves floats or doubles.so, no For:To:Next with float or doubles!