|Hexadecimal||The numeral system of base 16|
|Octal||The numeral system of base 8|
In the last chapter, we covered binary. However, there are also higher numbering base systems.
Hexadecimal is the numeral system of base 16. Its first ten digits are 0-9 and the next six digits are A-F. The Hexadecimal system is calculated the same was a binary and decimal, except with base 16 instead. It is used mainly to represent color and data location.
This table shows the first 16 hexadecimal numbers converted to base 10. The conversion protocol is the same as binary. Once a position reaches a value greater than 15, then you add 1 to the next position and restart at 0. You can see this between 15 and 16. 15 is equal to 15 multiplied by 16 to the 0th power. However 16 is equal to 1 multiplied by 16 to the first power. So the ones position is reset to 0, and the tens position increments by 1:
The Octal numeral system is the base 8 system. It uses 0-7 as its set of digits, and it’s calculated in the exact same way as the hexadecimal, decimal, and binary system, except with base 8. For instance, once the value of a certain position reaches the maximum value (in this case 8), it overflows into the next position. Take 4 multiplied by 2, in the chart below. 4 multiplied by 2 is eight, eight can be represented as 1 multiplied by 8 to the power of 1. The Octal numbering system was used widely to transcribe data locations and instruction, but as the data became larger, those uses fell to hexadecimal.
This table shows the octal multiplication chart:
Convert the following numbers to base 10.
1. Oct: 76
2. Oct: 135
3. Oct: 427
4. Hex: 8f
5. Hex: 7a
Written by Jason Zhang
Notice any mistakes? Please email us at [email protected] so that we can fix any inaccuracies.