Hexadecimal & Decimal Systems

Hexadecimal System

  • Notational system with 16 values per digit.

  • Values: 0-9 are represented by numerals, 10-15 are represented by letters A-F.

  • Used for compact representation of byte values, e.g., MAC and IPv4 addresses.

  • Hex is a base-16 numbering system.

Counting in Hexadecimal

  • Counting beyond F:

    • Replace the first digit of F with 1, and add 1 in the second position.

    • Example: Hex ID of 10 equals decimal 16.

Decimal to Hex Conversion Examples

  • 15 (Decimal) = F (Hex)

  • 23 (Decimal) = 17 (Hex)

  • 24 (Decimal) = 18 (Hex)

  • 25 (Decimal) = 19 (Hex)

  • 26 (Decimal) = 1A (Hex)

  • 27 (Decimal) = 1B (Hex)