Convert hexadecimal to decimal number

Convert hexadecimal to decimal number


We can convert hexadecimal to decimal by simply representing the given each digit of the given Hexadecimal number as sum of powers of 16, since for hexadecimal number system 16 is the base or radix. Here we first convert each individual hexadecimal digit separately and then add it together to get the final decimal equivalent. Detailed steps explaining the process of converting Hexadecimal to decimal, with illustrated examples of hexadecimal to decimal conversions.

 

How to Convert Hexadecimal to Decimal

Step 1: First we write down the given hexadecimal number separately and identify the LSD and MSD for hexadecimal numbers with only integer part and no fractional part.

Step 2: We then represent each digit of the given hexadecimal number as powers of 16, starting from 160 from right to left.

Step 3: We then evaluate the power of 16 values such as 160 is 1 and 161 is 16. And from the number system conversion table we can identify the decimal equivalent of individual hexadecimal digits such as for example the decimal equivalent of hexadecimal digit A is 10.

Step 4: We then multiply the decimal equivalent obtained from the number system table with the evaluated power of 16 values, and write it down as sum of products.

Step 5: We then add all the individual products and this sum total gives the final decimal equivalent of the given hexadecimal number.

 
The following show illustrated examples of hexadecimal to decimal converstions

Problem 1: Convert ( 2 5 A )16= ( ? )10


=  2 5 A
   ↑      ↑
MSD    LSD

= 2 x 162 + 5 x 161 + A x 160


= 2 x 256 + 5 x 16 +  10 x 1


= 512 + 80  + 10


= 602


Therefore  ( 2 5 A )16 =  ( 6 0 2 )10



Problem 2: Convert ( 2 0 D 0 )16= ( ? )10


=  2 0 D 0
    ↑        ↑
MSD       LSD

= 2 x 163 + 0 x 162 + D x 161+ 0 x 160


= 2 x 4096  + 0 x 256   + 13 x 16  + 0 x 1


= 8192  +  0  +  208  +  0


= 8400


Therefore  ( 2 0 D 0 )16 =  ( 8 4 0 0 )10




Problem 3:
 Convert ( F F F F )16= ( ? )10


=  F F F F 
    ↑        ↑
MSD      LSD

= F x 163 + F x 162 + F x 161+ F x 160


= 15 x 4096  + 15 x 256   + 15 x 16  + 15 x 1


=  61440 +  3840  +  240  +  15


= 65535


Therefore  ( F F F F )16 =  ( 6 5 5 3 5 )10





Problem 4: Convert ( A B C 0 )16= ( ? )10


=  A B C 0
   
= A x 163+ B x 162+ C x 161+ 0 x 160


= 10 x 4096  + 11 x 256+ 12 x 16 + 0 x 1


= 40960  +  2816  +  192 + 0  


= 43968


Therefore  ( A B C 0 )16 =  ( 4 3 9 6 8 )10


comments powered by Disqus