|
-
May 13th, 2004, 09:35 AM
#1
Thread Starter
New Member
-
May 13th, 2004, 09:38 AM
#2
An overflow happens when you take a large number and try to stuff it into something too small, like trying to stuff a Long into an Integer.
Sounds like there is some math going on that's causing it to overflow its bounds. Try running through, breaking on all errors, and see where the error happens.
TG
-
May 13th, 2004, 02:59 PM
#3
New Member
Root of the problem
Your problem stems from the usage of integer variables for your calculations when some, or all of them need to be some sort of floating point data type. Ex, trying to stuff/convert .07 into an integer field gives you a zero.
Try the other solution listed here and you will see.
-
May 13th, 2004, 09:18 PM
#4
Thread Starter
New Member
I don't get it changed them all to longs and still doesn't work.. please help!
-
May 13th, 2004, 10:00 PM
#5
I wonder how many charact
-
May 13th, 2004, 10:02 PM
#6
Thread Starter
New Member
-
May 13th, 2004, 10:17 PM
#7
I wonder how many charact
I just downloaded your project, changed all those variables declared at the top to doubles, and i got no errors.
VB Code:
Dim intGross As Double
Dim intDebt As Double
Dim intRate As Double
Dim intTerm As Double
Dim intDownPayment As Double
Dim intLoanAmount As Double
'This dims the variables that will be used to complete the equation
Dim intGross28 As Double
Dim intGross36 As Double
Dim intSalesPrice As Double
Dim intR As Double
Dim intN As Double
Dim intP As Double
Dim intPMT As Double
Dim intTaxes As Double
Dim intDebtRatio As Double
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
|