Base Conversion in Number System

Base Conversion in Number System: In previous topic, we have learnt about different number systems. In this topic, we will learn how to convert one number system into another, such as Binary number to Decimal, and this process is called Base conversion.

Need for Base Conversion

In the real world, let suppose there are two persons, one is proficient in the German language, and the other is proficient in the English language. If both the persons wish to communicate with each other, they require a translator to convert English to German and vice-versa. Similarly, in digital systems, most of the circuits use a binary number system. But some people understand the digital number system easily. So, there is a need for a translator to convert the data from one number system to another. Encoders and decoders are widely used for the conversion.

For example, calculators contain encoders and decoders to convert the data electronically from decimal to binary and vice-versa.

Block diagram using encoder and decoder

Block diagram using encoder and decoder

Let’s see different base conversions with example:

Binary to Decimal conversion

The conversion of binary to decimal can be performed simply by summing together, the integral and fractional parts are multiplied by ‘2i’ where the value of ‘i’ depends on the position.

Convert (1100.1011)2 into the decimal number system.

(1100.1011)2 = (1 x 23   +  1 x 22  +  0 x 21  +  0 x 20  +  1 x 2-1  +  0 x 2-2  +  1 x 2-3  + 1 x 2-4)10
                        =  (8       +     4      +      0      +      0      +    0.5      +      0       +  0.125  + 0.0625)10
                        =   ( 12.6875 )10

Decimal to Binary conversion

Divide the integral parts repeatedly by ‘2’ and write down the remainders after every division until ‘0’ is obtained as a quotient.

For the fractional part, multiply by the fraction part by ‘2’ until we obtain ‘1’ as a result.

Base Conversion in Number System
Base Conversion in Number System

Binary to Octal conversion

Binary bits are grouped into groups of three, initiated from LSB for an integral part, and the fractional part grouping initiates from MSB.

Base Conversion in Number System

Octal to Binary conversion

Octal bits are split into groups of three initiated from LSB for an integral part, and the fractional part grouping initiates from MSB.

Base Conversion in Number System

Octal to Decimal conversion

Convert (6327.4051)8 to the decimal number system.

(6327.4051)8 = (6 x 83   +  3 x  82  + 2 x 81  + 1 x 80  + 4 x 8-1  + 0 x 8-2  + 5 x 8-3  + 1 x 8-4)10
                        =  (3072  +  192     +   16    +    7      +   0.5      +      0      + 0.00976 + 0.00024)10
                        =   ( 3287.5100098 )10

Decimal to Octal conversion

Divide the integral parts repeatedly by ‘8’ and write down the remainders after every division until ‘0’ is obtained as a quotient.

For the fractional part, multiply by the fraction part by ‘8’ until we obtain ‘1’ as a result.

Base Conversion in Number System

Hexadecimal to Decimal conversion

HexadecimalDecimalBinary
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
A101010
B111011
C121100
D131101
E141110
F151111
Convert (3A.2F)16 to the decimal number system.

(3A.2F)16         = (3 x 161   +  10 x 160  + 2 x 16-1  + 15 x 16-2)10
                        =  ( 48        +       10       + 0.125     +    0.05859)10
                        =   ( 58.1836 )10

Decimal to Hexadecimal conversion

Divide the integral parts repeatedly by ‘16’, and write down the remainders after every division until ‘0’ is obtained as a quotient.

For the fractional part, multiply by the fraction part by ‘16’ until you obtain ‘1’ as a result.

Base Conversion in Number System

Binary to Hexadecimal conversion

Binary bits are grouped into groups of four initiated from LSB for an integral part, and the fractional part grouping initiates from MSB.

Base Conversion in Number System

Hexadecimal to Binary conversion

Hexadecimal bits are split into groups of four initiated from LSB for an integral part, and the fractional part grouping initiates from MSB.

Base Conversion in Number System
Takeaway Points: -   The integer part will increase whenever there is a conversion from a higher base to a lower base and vice-versa.   The fraction part will decrease whenever there is a conversion from a higher base to a lower base and vice-versa.  

Related Topics

Oscilloscope

With the use of an oscilloscope, you may observe the waveform of electronic signals and the changes in voltage over time. Why is that crucial? Circuits are required to transmit electrical energy...

3 minutes read.

Boolean algebra

Boolean algebra In real world, devices such as calculators are considered as magical devices that perform complex calculations in a fraction of seconds. It is because the electronic devices in digital...

4 minutes read.

Combinational Logic Circuit

Combinational Logic Circuit In digital system, Logic circuits generally fall into two categories. Combinational circuit: - At any instant of time, the output of the logic circuit depends on the inputs of...

3 minutes read.

Half Adder, Full Adders in Digital Electronics

Adders Before understanding the adders, lets first understand the arithmetic circuits that are used in Digital System. Arithmetic circuits In digital systems, various data processing tasks can be performed. Arithmetic circuits are derived...

13 minutes read.

Data Representation in Digital Electronics

Data Representation in Digital Electronics In digital electronics, we can represent the data in following ways: In the conventional arithmetic system, a negative number is represented by a minus sign and a...

4 minutes read.

Digital Electronics: Digital Number System

Digital Number System In the real world, when any person says that “he has 8 rupees.”, we understand the statement easily, but digital systems don’t understand it. Digital systems understand the...

2 minutes read.

Working of BJT (Bipolar Junction Transistor)

Bipolar Junction Transistor (BJT) A bipolar junction transistor (BJT) is a three-terminal device that consists of two pn-junctions constructed by placing one p-type or n-type semiconductor between 2 sets of semiconductors...

3 minutes read.

Base Conversion in Number System

Base Conversion in Number System: In previous topic, we have learnt about different number systems. In this topic, we will learn how to convert one number system into another, such...

4 minutes read.

Digital Electronics Tutorial

Introduction to Digital Electronics If you would like to learn all about digital electronics from 0 (basic) to 1 (expert level), then you are in the right place. In this tutorial...

4 minutes read.

Analog Circuits v/s Digital Circuits

Analog Circuit An analogue circuit uses analogue signals, which include more data since they are continuous waves as opposed to the binary downs and ups of a digital waveform. The whole...

5 minutes read.

Encoder in Digital Electronics

Encoders in Digital Logic Encoder is a digital circuit in which the performed operation is exactly the opposite of decoders. An encoder consists of a maximum of 2n inputs and produces...

3 minutes read.

Codes in Digital Electronics

CODES In digital system, the data or information such as numbers, letters, characters, or punctuation marks are depicted by a unique or particular set of symbols. They are fundamentally encrypted and,...

3 minutes read.

Capacitors in DC Circuit

Capacitor & Capacitance A capacitor is defined as any pair of conducting surfaces divided by an insulating substance. The capacitor's conducting surfaces are referred to as the plates, and the insulating...

6 minutes read.