To convert hexadecimal to octal we have to transform input value in base 16 to base-8 system.
The following is a conversion chart to help you compare values in base 16 with base 8:
Value in Base 16 | Base 8 |
---|---|
0 | 0 |
1 | 1 |
2 | 2 |
3 | 3 |
4 | 4 |
5 | 5 |
6 | 6 |
7 | 7 |
8 | 10 |
9 | 11 |
a | 12 |
b | 13 |
c | 14 |
d | 15 |
e | 16 |
f | 17 |