Professional Documents
Culture Documents
The study of number systems is useful to the student of computing due to the fact that
number systems other than the familiar decimal(base 10) number system are used in the
computer field.
Digital computers internally use the binary (base 2) number system to represent data
and perform arithmetic calculations. The binary number system is very efficient for
computers, but not for humans. Representing even relatively small numbers with the binary
system requires working with long strings of ones and zeroes. The most common number
systems are the decimal, binary, octal and hexadecimal system.
DECIMAL SYSTEM
The decimal system is the most familiar to us because we use this number system in
our daily activities. It has a radix or base of 10 and is composed of the numbers or symbols 0,
1, 2, 3, 4, 5, 6, 7, 8 and 9. The place value of the number right next to the left of a number is
ten times greater. To illustrate, see examples below.
Example 1.
2,58310 = (2 x 103) + (5 x 102) + (8 x 101) + (3 x 100)
= 2, 000 + 500 + 80 + 3
= 2, 58310
Example 2.
757.1510 = (7 x 102) + (5 x 101) + (7 x 100) + (1 x 10-1) + (5 x 10-2)
= 700 + 50 + 7 + 0.1 + 0.05
= 757.1510
BINARY SYSTEM
The binary system has a radix or base of 2 and is composed of two numbers only.
These numbers are 0 and 1, which may correspond to OFF and ON or HIGH and LOW
respectively in digital circuits. The place value of the number right next to the left of a
number is two times greater. To determine the value of a binary number in decimal, see
examples below.
Example 1.
10,1112 = (1 x 24) + (0 x 23) + (1 x 22) + (1 x 21) + (1 x 20)
= 16 + 0 + 4 + 2 + 1
= 2310
Example 2.
101.1112 = (1 x 22) + (0 x 21) + (1 x 20) + (1 x 2-1) + (1 x 2-2) + (1 x 2-3)
= 4 + 0 + 1 + 0.5 + 0.25 + 0.125
= 5.87510
OCTAL SYSTEM
The octal system has a radix or base of 8 and is composed of numbers or symbols 0, 1,
2, 3, 4, 5, 6 and 7. The place value of the number right next to the left of a number is eight
times greater. To determine the value of an octal number in decimal, see examples below.
Example 1.
17628 = (1 x 83) + (7 x 82) + (6 x 81) + (2 x 80)
= 512 + 448 + 48 + 2
= 101010
Example 2.
345.628 = (3 x 82) + (4 x 81) + (5 x 80) + (6 x 8-1) + (2 x 8-2)
= 192 + 32 + 5 + 0.75 + 0.25 + 0.03125
= 229.7812510
HEXADECIMAL SYSTEM
The hexadecimal system has a radix or base of 16 and is composed of numbers or
symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F. The number or symbols A, B, C, D, E and
F has the value of 10, 11, 12, 13, 14 and 15 respectively in decimal system. The place value
of the number right next to the left of a number is sixteen times greater. To determine the
value of a hexadecimal number in decimal, see the following examples.
Example 1.
1AC216 = (1 x 163) + (10 x 162) + (12 x 161) + (2 x 160)
= 4096 + 2560 + 192 + 2
= 685010
Example 2.
F4.A216 = (15 x 161) + (4 x 160) + (10 x 16-1) + (2 x 16-2)
= 240 + 4 + 0.625 + 0.0078125
= 244.632812510
Example:
Convert the binary number 11011101.01001112 to octal
Solution:
Example:
Convert the binary number 11011101.01001112 to hexadecimal
Solution:
1101 1101. 0100 1110
13 13 . 4 14
or
D D. 4 E
6 2 4
110 010 100
Therefore, 6248 = 19416