|
-
Mar 1st, 2002, 10:18 AM
#1
Thread Starter
Fanatic Member
Work this one out???
Can someone please explain to me why sample code 1 results in a division by zero error, and sample code 2 results in an Overflow error?
I Know that the code should result in an error, but why different errors????
Sampe Code 1
===========
Dim i As Integer
i = 1
i = i / 0
===========
Sample Code 2
===========
Dim i As Integer
i = i / 0
===========
Leather Face is comin...
MCSD
-
Mar 1st, 2002, 10:20 AM
#2
well you are doing 2 different things..
in case one ..you are dividing 1/0
in case two...0/0
its just that overflow is the error caught befor edivsion by zerro...of course not sure why that would give an overflow.
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
|