Been a while - I''m really rusty..
Archiver
Posts: 46,084
>What would be the best way to multiply 199.9 (var) x 1.1508 (con) with a
>stamp so as to get back a result of xxx.x?
>I've looked at the ** operator, but can't seem to figure out how to get the
>correct result.
>
>TIA,
>Chris
X var word
Y var word
X=1999
Y = X ** 9883 + X
debug dec Y/10,".",dec1 X
' prints 230.0 -- correct answer is 230.04492
' 9883/65536 approximates 1508/10000
-- Tracy
>stamp so as to get back a result of xxx.x?
>I've looked at the ** operator, but can't seem to figure out how to get the
>correct result.
>
>TIA,
>Chris
X var word
Y var word
X=1999
Y = X ** 9883 + X
debug dec Y/10,".",dec1 X
' prints 230.0 -- correct answer is 230.04492
' 9883/65536 approximates 1508/10000
-- Tracy