Number System - An Introduction
Number System - An Introduction
We human beings have been always looking for ways to count things. For
example, one, two, three, four and so on.
Besides Decimal and Binary number system, we also have Octal and Hexadecimal
number system.
Octal Number System also called as Base 8 number system, has 8 symbols or
digits i.e 0, 1, 2, 3, 4, 5, 6, 7. Every number in Octal number system is a
combination of these digits. For example 220, 734, 57 are octal numbers.
2 124
2 62 0
2 31 0
2 15 1
2 7 1
2 3 1
1 1
To convert the binary number into decimal, we simply find the sum of the products
of each binary digit and its positional power to the base 2.
24 23 22 21 20
1 0 1 1 0
0 1 2
Here, 2 , 2 , 2 , etc. are positional powers, starting from right side with the power
of 0.
23 22 21 20
1 0 1 0
1 × 23 + 1 × 21
1×8+1×2
8 + 2 = 10
Note: The digit 0 and its positional power can be omitted in calculation since
the product of any number when multiplied with zero is a zero.
(a) 10110 (b) 11011 (c) 11100 (d) 1001 (e) 101010
8 179
8 22 3
8 2 6
0 2
Since the quotient is zero now, no more division can be done. So by taking the
remainders in reverse order, we get the equivalent octal number.
Hence, (179)10 = (263)8
For easy reference, the table of 8 upto multiples of 20 is given below.
Practice questions:
Convert the following Decimal numbers into Octal.
1. 53 2. 103 3. 456 4. 212 5. 165
To convert octal to decimal, we need to multiply the octal digits with the power of
8 starting from the right-hand side and gradually decreasing to zero to sum up, all
the products. Here are the steps to convert a number from octal to decimal.
For example:
Convert (141)8 into a decimal number.
82 81 80
1 4 1
1 x 8 2 + 4 x 81 + 1 x 8 0
64 + 32 + 8
104
Hence, (141)8 = (104)10
To define colours on web pages. Each primary colour – red, green and blue
is characterized by two hexadecimal digits. The format being used is
#RRGGBB. RR stands for red, GG stands for green and BB stands for blue.
16 960
16 60 0
16 3 12
0 3
(960)10 = (3C0)16
Note: When the quotient for any one number is more than 10, it is
written as the alphabet it represents in hexadecimal. (In the above
example, 12 is written as C in the answer).
Example 2: Convert (600)10 to hexadecimal
16 600
16 37 8
16 2 5
0 2
(600)10 = (258)16
CONVERSION OF HEXADECIMAL TO DECIMAL
161 160
2 5
2 × 161 + 5 × 160
2 × 16 + 5 × 1
32 + 5
37
Therefore, (25)16 = (37)10
Example 2: Convert (5EF)16 into the decimal system.
In Hexadecimal system,
5=5
E = 14
F = 15
Practice questions:
Convert the following hexadecimal to decimal numbers.