Hexadecimal numbering system is one of the numeral systems that are commonly used in computers and other digital systems. It is base 16 and it has 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F.
On the other hand, denary system is probably the most familiar numeral system in the world. It is the standard system for denoting integer and non-integer numbers. It is base 10 and it has 10 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
Table #1: Hexadecimal to Denary conversion table
Hexadecimal | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
Denary | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
We can say that a denary number is a sum of listed denary digits multiplied by the power of 10. We can say the same thing for a hexadecimal number, but we need to count each denary representation of a digit as a power of 16. In order to make it easier to understand, here is a list of steps that you can use:
Hexadecimal to denary calculation formula |
---|
DENARY = dn-1 x 16n-1 + ... + d3 x 163 + d2 x 162 + d1 x 161 + d0 x 160 |
We can see that the last power of 16 depends on the number of digits in the starting hexadecimal number. Let's take a look at few examples.
Example #1: Convert hexadecimal 9E into denary
Step description | Multiplication | Result |
---|---|---|
Multiply denary representation of E with 160 | 14 x 1 | 14 |
Multiply denary representation of 9 with 161 | 9 x 16 | 144 |
Resulting denary number | 158 |
Example #2: Convert hexadecimal 7E3 into denary
Step description | Multiplication | Result |
---|---|---|
Multiply denary representation of 3 with 160 | 3 x 1 | 3 |
Multiply denary representation of E with 161 | 14 x 16 | 224 |
Multiply denary representation of 7 with 162 | 7 x 256 | 1792 |
Resulting denary number | 2019 |