11th CS NumberSystem-Maths
11th CS NumberSystem-Maths
11th CS NumberSystem-Maths
• The digit
• Its position in the number
• The base of the number system
Before discussing the different types of number system examples, first, let us discuss
what is a number?
What is a Number?
A number is a mathematical value used for counting or measuring or labelling objects.
Numbers are used to performing arithmetic calculations. Examples of numbers are
natural numbers, whole numbers, rational and irrational numbers, etc. 0 is also a
number that represents a null value.
A number has many other variations such as even and odd numbers, prime and
composite numbers. Even and odd terms are used when a number is divisible by 2 or
not, whereas prime and composite differentiate between the numbers that have only
two factors and more than two factors, respectively.
In a number system, these numbers are used as digits. 0 and 1 are the most common
digits in the number system, that are used to represent binary numbers. On the other
hand, 0 to 9 digits are also used for other number systems. Let us learn here the types
of number systems.
Now, let us discuss the different types of number systems with examples.
Decimal Number System (Base 10 Number System)
The decimal number system has a base of 10 because it uses ten digits from 0 to 9. In
the decimal number system, the positions successive to the left of the decimal point
represent units, tens, hundreds, thousands and so on. This system is expressed
in decimal numbers. Every position shows a particular power of the base (10).
The decimal number 1457 consists of the digit 7 in the units position, 5 in the tens place,
4 in the hundreds position, and 1 in the thousands place whose value can be written as:
1000 + 400 + 50 + 7
1457
Solution:
Solution:
2158 = 2 × 82 + 1 × 81 + 5 × 80
= 2 × 64 + 1 × 8 + 5 × 1
= 128 + 8 + 5
= 14110
Hexadecimal Number System (Base 16 Number System)
In the hexadecimal system, numbers are written or represented with base 16. In the
hexadecimal system, the numbers are first represented just like in the decimal system,
i.e. from 0 to 9. Then, the numbers are represented using the alphabet from A to F. The
below-given table shows the representation of numbers in the hexadecimal number
system.
Hexadecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
With the help of the different conversion procedures explained above, now let us
discuss in brief about the conversion of one number system to the other number
system by taking a random number.
Assume the number 349. Thus, the number 349 in different number systems is as
follows:
Solution:
First we need to convert the given hexadecimal number into decimal number
(1056)16
= 4096 + 0 + 80 + 6
= (4182)10
Now we will convert this decimal number to the required octal number by repetitively
dividing by 8.
8 4182 Remainder
8 522 6
8 65 2
8 8 1
8 1 0
0 1
Therefore, taking the value of the remainder from bottom to top, we get;
(4182)10 = (10126)8
Therefore,
(1056)16 = (10126)8
Example 2:
Solution:
(1001001100)2
= 1 × 2 9 + 0 × 28 + 0 × 27 + 1 × 26 + 0 × 25 + 0 × 24 + 1 × 23 + 1 × 22 + 0 × 21 + 0 × 20
= 512 + 64 + 8 + 4
= (588)10
Example 3:
Solution:
Given,
101012 is the binary number
010 101
010 → 2
101 → 5
Example 4:
Solution:
2C → 00101100
101100 = 1 × 25 + 0 × 24 + 1 × 23 + 1 × 22 + 0 × 21 + 0 × 20
= 32 + 8 + 4
= 44