Multiplies two numbers. Use MULD to multiply two decimal numbers; use MULX to multiply two hexadecimal numbers.
Format
MULD n m MULX n m |
Parameter(s)
n |
First of the two numbers to be multiplied. |
m |
Second of the two numbers to be multiplied. |
Description
Precede negative decimal numbers with a minus sign. Hexadecimal numbers are negative in the range X’FFFFFFFFFFFF (-1) to X’800000000001 (-140,737,488,355,327).
Multiplying Decimal Numbers
The following example multiplies 4 and 20:
>MULD 4 20 80 |
Multiplying Hexadecimal Numbers
The following example multiplies hexadecimal 356 and 8:
>MULX 356 8 1AB0 |