Number System: Binary, Octal, Decimal, and Hexadecimal
Number System: Binary, Octal, Decimal, and Hexadecimal
Hexadecimal
Each binary digit is also called a bit. Binary number system is also
positional value system, where each digit has a value expressed in
powers of 2:
1 1 0 1 0
pos-> 4th 3rd 2nd 1st 0th
= 16 + 8 + 0 + 2 + 0
= 26 base 10.
7268 Base 8
= 7×82 + 2×81 + 6×80
= 448 + 16 + 6
= 470 base 10
Place value:
If decimal numbers have place values like ones, tens, hundreds,
thousands, and so on, hexadecimal numbers have place values as
well. Decimals have powers of 10 while Hexadecimals have powers
of 16.
Hexadecimal Decimal
10 16
100 256
1000 4,096
Uses of Hexadecimal:
The hexadecimal numbering system is often used by programmers
to simplify the binary numbering system. Since 16 is equivalent to
24, there is a linear relationship between the numbers 2 and 16.
This means that one hexadecimal digit is equivalent to four binary
digits. Computers use binary numbering systems while humans use
hexadecimal numbering systems to shorten binary and make it
easier to understand.
Hexadecimal are used in the following: