epactheactor
New Member
- Joined
- Sep 9, 2015
- Messages
- 38
Hello!
I'm writing a macro and I keep getting an overflow error. At first I believed it was because I was using Integer and the value was too large for that data type. But I've tried Long and Double to the same error. What am I missing?
Values being used;
material = 35000
txtWT = .5
txtDia = 8.625
This is the formula;
answer = (material/(txtWT * 2)) / txtDia
I split it up to see if maybe that was the problem to this;
X = txtWT * 2
Y = material / X
answer = Y / txtDia
Thank you for any help.
I'm writing a macro and I keep getting an overflow error. At first I believed it was because I was using Integer and the value was too large for that data type. But I've tried Long and Double to the same error. What am I missing?
Values being used;
material = 35000
txtWT = .5
txtDia = 8.625
This is the formula;
answer = (material/(txtWT * 2)) / txtDia
I split it up to see if maybe that was the problem to this;
X = txtWT * 2
Y = material / X
answer = Y / txtDia
Thank you for any help.