Convert every hex digit (start lowest digit) to 4 binary digits, with this table:
Hex | Binary |
---|---|
0 | 0000 |
1 | 0001 |
2 | 0010 |
3 | 0011 |
4 | 0100 |
5 | 0101 |
6 | 0110 |
7 | 0111 |
8 | 1000 |
9 | 1001 |
A | 1010 |
B | 1011 |
C | 1100 |
D | 1101 |
E | 1110 |
F | 1111 |
Then convert every 3 binary digits from bit0 to 1 octal digit, with this table:
Binary | Octal |
---|---|
000 | 0 |
001 | 1 |
010 | 2 |
011 | 3 |
100 | 4 |
101 | 5 |
110 | 6 |
111 | 7 |
Convert hex 6C16 to octal:
6C16 = 6 C = 110 1100 = 11011002
11011002 = 1 101 100 = 1 5 4 = 1548