F
FGM
Office xp windows 200
LO = Log(10)
In vba have a double loop..
R = 0 to 80
K = 0 to 16
When R = 66 get an overflow because of 500 * R
D2(R,K) = S(K) -20 * Log(500*R)/LO -8.69 * A2(K) * 500 * R
Got overflow with above .. also got over flow by just doing 500 *66
Had to solve the problem by
D2(R,K) = S(K)-20 * ((log(500)/LO) * (Log(R)/LO) - A1(K) + 5 * R
Why do I get an overflow with anything over 500* 66 or anything multiplied
greater than 32500?
Thank you for your input... spent a lot of time trying to figure out what
the over flow problem was and how to solve it.
thanks
fgm
LO = Log(10)
In vba have a double loop..
R = 0 to 80
K = 0 to 16
When R = 66 get an overflow because of 500 * R
D2(R,K) = S(K) -20 * Log(500*R)/LO -8.69 * A2(K) * 500 * R
Got overflow with above .. also got over flow by just doing 500 *66
Had to solve the problem by
D2(R,K) = S(K)-20 * ((log(500)/LO) * (Log(R)/LO) - A1(K) + 5 * R
Why do I get an overflow with anything over 500* 66 or anything multiplied
greater than 32500?
Thank you for your input... spent a lot of time trying to figure out what
the over flow problem was and how to solve it.
thanks
fgm