The RTD command converts a hexadecimal number (root) to decimal.
Format
RTD n |
Parameter(s)
n |
Hexadecimal number to be converted. |
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).
To convert decimal numbers to hexadecimal, use the DTR command.
Converting Hexadecimal Numbers to Decimal
The following example converts hexadecimal 1A to decimal:
>RTD 1A 26 |