Thread
:
for loop with step increment of 0.1
View Single Post
#
2
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
for loop with step increment of 0.1
2.1
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"choi4u" wrote in message
...
Running this code
Sub test()
For i = 1.5 To 2 Step 0.1
Debug.Print i
Next i
End Sub
gives this output
1.5
1.6
1.7
1.8
1.9 .
Why does the output not include 2.0?
and what do I have to do to make the output include 2.0?
Thanks in advance.
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett