Can someone run the code below and tell me why it never reaches 0.06?
I am really puzzled..... or just going crazy?
Dim i As Double
For i = 0.01 To 0.05 Step 0.01
Debug.WriteLine (i)
Next
Debug.WriteLine ("*******max0.0 5************")
For i = 0.01 To 0.06 Step 0.01
Debug.WriteLine (i)
Next
Debug.WriteLine ("*******max0.0 6************")
For i = 0.01 To 0.07 Step 0.01
Debug.WriteLine (i)
Next
Debug.WriteLine ("*******max0.0 7************")
I get the output below:
0.01
0.02
0.03
0.04
0.05
*******max0.05* ***********
0.01
0.02
0.03
0.04
0.05
*******max0.06* ***********
0.01
0.02
0.03
0.04
0.05
0.06
0.07
*******max0.07* ***********
I am really puzzled..... or just going crazy?
Dim i As Double
For i = 0.01 To 0.05 Step 0.01
Debug.WriteLine (i)
Next
Debug.WriteLine ("*******max0.0 5************")
For i = 0.01 To 0.06 Step 0.01
Debug.WriteLine (i)
Next
Debug.WriteLine ("*******max0.0 6************")
For i = 0.01 To 0.07 Step 0.01
Debug.WriteLine (i)
Next
Debug.WriteLine ("*******max0.0 7************")
I get the output below:
0.01
0.02
0.03
0.04
0.05
*******max0.05* ***********
0.01
0.02
0.03
0.04
0.05
*******max0.06* ***********
0.01
0.02
0.03
0.04
0.05
0.06
0.07
*******max0.07* ***********
Comment