SECTION I-7: Converting from Hex to Decimal

Converting from Hex to to decimal can also be approached in two ways:

  1. Convert from Hex to Binary and then to Decimal Example is demonstrated below.
  2. Convert directly from Hex to Decimal by summing the weight of all digits.

 

Convert Hexadecimal number  6B216  to Decimal
6B216 = 6 = 0110, B = 1011, 2 = 0010 So 6B216 = 0110 1011 00102
210 29 28 27 26 25 24 23 22 21 20
1024 512 256 128 64 32 16 8 4 2 1
1 1 0 1 0 1 1 0 0 1 0
1024 + 512 + 128 + 32 + 16 + 2 = 171410

 

Convert Hexadecimal number 9F2D16 to Decimal Base 10
9F2D16 = 1001 1111 0010 11012
9 = 1001,     F = 1111,    2 = 0010,    D = 1101
1x215 0x214 0x213 1x212 1x211 1x210 1x29 1x28 0x27 0x26 1x25 0x24 1x23 1x22 0x21 1x20
1x32768 0x16384 0x8192 1x4096 1x2048 1x1024 1x512 1x256 0x128 0x64 1x32 0x16 1x8 1x4 0x2 1x1
32768 0 0 4096 2048 1024 512 245 0 0 32 0 8 4 0 1
32768 + 4096 + 2048 + 1024 + 512 + 256 + 32 + 8 + 4 + 1 = 40,74910

 

More From Iamtechnical.com

Advertisement: