Use DIVD to divide one decimal number by another; use DIVX to divide one hexadecimal number by another.
Format
DIVD n m DIVX n m |
Parameter(s)
n |
Number to be divided. |
m |
Number that divides n. |
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).
Dividing a Decimal Number
The following example divides 3 by 7. The remainder is displayed after the quotient:
>DIVD 3 7 0 3 |
Dividing a Hexadecimal Number
The following example divides F by A:
>DIVX F A 1 5 |