|
-
Mar 4th, 2003, 07:15 AM
#1
Thread Starter
New Member
double as a counter
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|