Hexadecimal (base 16)
• Shorter & easier to read than binary
• 16 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D,
E, F
• “0x” often precedes hexadecimal numbers
– 0x123 = 1 * 162 + 2 * 161 + 3 * 160
= 1 * 256 + 2 * 16 + 3 * 1
= 256 + 32 + 3
= 291
Hexadecimal (base 16)
• Another example
– 0xABC
– = A * 162 + B * 161 + C * 160
= 10 * 256 + 11 * 16 + 12 * 1
= 2560 + 176 + 12
= 2748
Other Bases
• Base 13
– 123 = 1 * 132 + 2 * 131 + 3 * 130
= 1 * 169 + 2 * 13 + 3 * 1
= 169 + 26 + 3
= 198

1 number systems-hex

  • 1.
    Hexadecimal (base 16) •Shorter & easier to read than binary • 16 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F • “0x” often precedes hexadecimal numbers – 0x123 = 1 * 162 + 2 * 161 + 3 * 160 = 1 * 256 + 2 * 16 + 3 * 1 = 256 + 32 + 3 = 291
  • 2.
    Hexadecimal (base 16) •Another example – 0xABC – = A * 162 + B * 161 + C * 160 = 10 * 256 + 11 * 16 + 12 * 1 = 2560 + 176 + 12 = 2748
  • 3.
    Other Bases • Base13 – 123 = 1 * 132 + 2 * 131 + 3 * 130 = 1 * 169 + 2 * 13 + 3 * 1 = 169 + 26 + 3 = 198