wisconsin
Hexadecimal

Hexadecimal

Curated by Last modified: 1 min read

Hexadecimal is a base-16 number system. It uses 16 symbols to represent numbers. The symbols are 0-9 and A-F. The A-F symbols represent the numbers 10-15, respectively.

Hexadecimal provides a convenient way to represent binary numbers. Each hexadecimal digit represents four binary digits. This is because .

BinaryHexadecimalDecimal
000000
000111
001022
001133
010044
010155
011066
011177
100088
100199
1010A10
1011B11
1100C12
1101D13
1110E14
1111F15

The Hexadecimal Prefix

In programming, hexadecimal numbers are often prefixed with 0x. This is to distinguish hexadecimal numbers from other number systems. For example, 0x10 is a hexadecimal number, while 10 is a decimal number.

Related: lecture-02, lecture-03, lecture-04, lecture-05

Source

Original retained in wisconsin-legacy.

Linked to this page