Convert Hexadecimal to Decimal

There are various types of number systems namely binary, octal, decimal, hexadecimal and so on. We can easily convert one base system to another using certain rules of conversion. To convert a hexadecimal number to decimal number we multiply each digit with its place value and add the products.


Note

MSB
MSB (Most Significant Bit) is the leftmost digit is the most significant digit of a number.

LSB
LSB (Least Significant Bit) is the rightmost digit is the least significant digit of a number.


Convert Hexadecimal to Decimal Number

What is Hexadecimal Number? The number to the base 16 is called Hexadecimal numbers. It uses the numbers from 0 to 9, A, B, C, D, E, and F. What is Decimal Number? Decimal number system has basic digits 0 to 9. The base of the decimal system is 10.

For Example

To convert the hexadecimal number (D7)16 to a decimal number ( )10, we use the Multiplication method.

Steps Description Solution
1 Write down the hexadecimal number (D7)16
2 Count right to left of the hexadecimal number. 1 0
D 7
3 List the powers of sixteen from right to left. Start at 160, evaluating it as “1”.
Increment the exponent by one for each power.
1      0
D      7

161 160
4 Multiply each digit of the hexadecimal number by the corresponding power of 16 D(13)x161 + 7×160
5 Add all the numbers to get the decimal equivalent. = D(13)x161 + 7×160
= 13×16 + 7×1 
= 208 + 7 
= 215
(D7)16 = (215)10

More Topics