Convert hexadecimal to decimal 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