|
-
Apr 21st, 2002, 08:50 PM
#1
Thread Starter
Frenzied Member
*SOLVED* Overflow when dividing
ok...
im making a paint program, and when the user is going to draw a straight line, he has to do as in mspaint: hold down shift....
the problem is when the program is going to calculate the M value and the K value of the line...
here's a bit of the code:
If Shift = 1 Then
KValue = (Y - StartY) / (X - StartX)
MValue = Y - X * KValue
End If
but it cant do the division!! it gives me the overflow error!
why?
Last edited by cyborg; Apr 21st, 2002 at 10:20 PM.
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
|