View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
choi4u choi4u is offline
external usenet poster
 
Posts: 3
Default for loop with step increment of 0.1

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.