Hi Steve,
On paper, Result = X * 3 is the same as Result = X+X+X, right?
If the above is correct then Result = X * 1.5 is the same as Result = X + (X/2), right?
And if we agree that the above is correct then I think we'll agree that Result = X + (X*0.5) is the same as Result = X * 1.5 too?
Same thing with the formula in the previous message but the number is 1.5464 instead of 1.5.
Again, ideally, we would want to do Result = ADValue ** 101345 (where 101345 is 65536*1.5464) but that will result in a compile time error if LONGs aren't enabled (because 101345 is larger than 65536 so there's a risk of overflowing the 32bit intermediate result thus returning the wrong value) so we resort to first calculating what 0.5464 is and then add that to the original value, exactly as we did in the example above.
Don't worry, I'm sure you'll get it!
/Henrik.




Bookmarks