Imtiaz Ahmad
Imtiaz Ahmad
Semester No: 01
Assignment No: 02
Number System
Number System:
The number system is simply a system to represent or express numbers. There are
various types of number systems and the most commonly used ones are decimal number system,
binary number system, octal number system, and hexadecimal number system.
Now, let us discuss the different types of number systems with examples.
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).
1000 + 400 + 50 + 7
1457
Example
Solution:
2 14
2 7 0
2 3 1
1 1
∴ (14)10 = 11102
Octal Number System (Base 8 Number System)
In the octal number system, the base is 8 and it uses numbers from 0 to 7 to represent numbers.
Octal numbers are commonly used in computer applications. Converting an octal number to decimal
is the same as decimal conversion and is explained below using an example.
Example:
Solution:
2158 = 2 × 82 + 1 × 81 + 5 × 80
= 2 × 64 + 1 × 8 + 5 × 1
= 128 + 8 + 5
= 14110
In the number system chart, the base values and the digits of different number systems can be
found. Below is the chart of the numeral system.
Numbers can be represented in any of the number system categories like binary, decimal,
hexadecimal, etc. Also, any number which is represented in any of the number system types can be
easily converted to another. how to convert numbers in decimal to binary and vice versa,
hexadecimal to binary and vice versa, and octal to binary and vice versa using various examples.
Assume the number 349. Thus, the number 349 in different number systems is as follows:
Example 1:
Convert (1056)16 to an octal number.
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.
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 × 29 + 0 × 28 + 0 × 2 7 + 1 × 2 6 + 0 × 25 + 0 × 24 + 1 × 2 3 + 1 × 22 + 0 × 2 1 + 0 × 20
= 512 + 64 + 8 + 4
= (588)10
Example 3:
Solution:
Given,
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
( END )