Number System Conversion
Number System Conversion
In number system
conversion, we will study to convert a number of one base, to a number of another base. There
are a variety of number systems such as binary numbers, decimal numbers, hexadecimal
numbers, octal numbers, which can be exercised.
In this article, you will learn the conversion of one base number to another base number
considering all the base numbers such as decimal, binary, octal and hexadecimal with the help of
examples. Here, the following number system conversion methods are explained.
Get the pdf of number system with a brief description in it. The general representation of number
systems are;
0000 0 0 0
0001 1 1 1
0010 2 2 2
0011 3 3 3
0100 4 4 4
0101 5 5 5
0110 6 6 6
0111 7 7 7
1000 10 8 8
1001 11 9 9
1010 12 10 A
1011 13 11 B
1100 14 12 C
1101 15 13 D
1110 16 14 E
1111 17 15 F
In the above expression, dn-1 dn-2—–.d1 d0 represents the value of integer part and d-1 d-2 —- d-
m represents the fractional part.
Also, dn-1 is the Most significant bit (MSB) and d-m is the Least significant bit (LSB).
Related Topics
Suppose if we have to convert decimal to binary, then divide the decimal number by 2.
25 ÷ 2 12 1(MSB)
12 ÷ 2` 6 0
6÷2 3 0
3÷2 1 1
1÷2 0 1(LSB)
(25)10 = (11001)2
To convert decimal to octal number we have to divide the given original number by 8 such that
base 10 changes to base 8. Let us understand with the help of an example.
128÷8 16 0(MSB)
16÷8 2 0
2÷8 0 2(LSB)
Decimal to Hexadecimal:
Again in decimal to hex conversion, we have to divide the given decimal number by 16.
8÷16 0 8(LSB)
Here MSB stands for a Most significant bit and LSB stands for a least significant bit.
In this conversion, binary number to a decimal number, we use multiplication method, in such a
way that, if a number with base n has to be converted into a number with base 10, then each digit
of the given number is multiplied from MSB to LSB with reducing the power of the base. Let us
understand this conversion with the help of an example.
Now, multiplying each digit from MSB to LSB with reducing the power of the base number 2.
1 × 23 + 1 × 22 + 0 × 21 + 1 × 20
=8+4+0+1
= 13
Octal to Decimal:
To convert octal to decimal, we multiply the digits of octal number with decreasing power of the
base number 8, starting from MSB to LSB and then add them all together.
2 x 81 + 2 x 80
= 16 + 2
= 18
Hexadecimal to Decimal:
= 289
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
A 1010
B 1011
C 1100
D 1101
E 1110
F 1111
You can easily solve the problems based on hexadecimal and binary conversions with the help of
this table. Let us take an example.
Solution: From the table, we can get the binary value of 8 and 9, hexadecimal base numbers.
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
2 → 010
1 → 001
4 → 100
Therefore,(214)8 = (010001100)2