Converting decimal and hexadecimal numbers. The MCDX and MCXD codes convert data from decimal to hexadecimal or hexadecimal to decimal equivalents.
MCDX |
Used to convert decimal numbers to their hexadecimal equivalents. |
MCXD |
Used to convert hexadecimal numbers to their decimal equivalents. |
The examples in the table below assume that both codes are placed in attribute 7.
Original Value |
Code |
Result |
A |
MCXD |
10 |
B |
MCXD |
11 |
A3 |
MCXD |
163 |
17 |
MCDX |
11 |
30 |
MCDX |
1E |
See Also