Thank you very much.
I am stuck again.
I multiply by 1000 to shift where the decimal will be.
The problem is my first calculation is
1022*1000 comes out 38960 instead of 1022000 How do I keep my whole number?
I tried this as well
dummy VAR WORD
adval0=1019
dummy = adval0*1000*3
adval0 = div32 1023
Gives me 111... Should be giving me 2988 or something...
Last edited by geckogrotto; - 1st February 2007 at 17:03. Reason: Div32
Try this...
Code:adval0 = adval0*3000 adval0 = div32 1023
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Stuck again. I'm just not understanding this math
adval0 = 2904
result = adval0 / 15100
remainder = adval0 // 15100
result = 0
remainder is 2904
How do I get the acutal number it should be 0.192xxx?
I'm looking at dig but not sure if thats the right thing to use because it will not always be 2 digits...
adval 0 = 2904*10
result = adval/151
192
then use dig to move the places... and do something like
if > 9999
if > 999
to figure out where the . should be... Is this the best way to do it?
Last edited by geckogrotto; - 2nd February 2007 at 00:20.
Bookmarks