// you’re reading...

Variable and Data Types

The Hexadecimal System

The hexadecimal system uses sixteen (16) symbols to represent a number

  • Since the Latin language consists of only 10 digits, we cannot make up new ones
  • The hexadecimal system uses alphabetic characters
  • After counting from 0 to 9, the system uses letters until it gets 16 different values
  • (B-1) The hexadecimal system counts as follows:



Example of (B-1)

  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, and f
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F



The letters used

  • (B-2) a, b, c, d, e, and f, or their uppercase equivalents A, B, C, D, E, and F
  • (B-2) To produce a number, you use a combination of these sixteen symbols



Example of (B-2)

  • Examples of hexadecimal numbers are 293, 0, df, a37, c23b34, or ffed54



To express the difference between a decimal number and a hexadecimal

  • (B-3) One, each hexadecimal number will start with 0x or 0X
  • (B-3) The number will be followed by a valid hexadecimal combination
  • (B-3) The letter can be in uppercase or lowercase



Example of (B-3)

  • Legal Hexadecimals: 0×273, 0xfeaa, 0Xfe3, 0×35FD, 0×32F4e
  • Non-Hex Numbers: 0686, ffekj, 87fe6y, 312

Discussion

No comments for “The Hexadecimal System”

Post a comment