i am getting funny results when i use a double as a counter
Dim counter As Double
For counter = 0 To 10 Step 0.1
Debug.Print counter
Next counter
it works alright up to 5.9 then it goes to 5.99999999999999 and the error carries over.
even though its not a large error i can't see why it goes it.
any ideas?


Reply With Quote
