Manual

139
mul
mul
Description
Multiplies two numbers and returns the product.
Usage
Any1Num Any2Num mul ProductNum
Any1Num Integer or fixed-point. First number to multiply.
Any2Num Integer or fixed-point. Second number to multiply.
SumNum Integer or fixed-point. Integer if Any1Num and Any2Num are both integer,
otherwise fixed-point. Product of Any1Num and Any2Num.
Comments
The
mul
operator pops the top two objects from operand stack, multiplies them together, and
pushes the result back onto the operand stack. The interpreter must find two numeric objects on the
top of the stack or a typecheck error will result.
If the stack contains two integer objects, the interpreter will perform integer multiplication and
push an integer result onto the stack. The interpreter will perform fixed point multiplication and
push a fixed point result if the stack contains a fixed point object as either operand.










