The number system is a form of expressing the different types of numbers used in an electronic or digital computer functioning.
A Number System is a method to represent different types of numbers mathematically. It can use arithmetic operations to represent every number uniquely. To represent a number from a number system, it requires its base or radix.
Definition
Number system conversions are the study of changing the base of a number system from one system to another.
Types of Number System
There are a variety of number systems present in Mathematics that can be exercised or used in a computer system as needed. These are –
Binary Number System
The base value of a Binary Number System is 2.
The total numbers in this system are 2 (hence the base is 2) i.e. 0 and 1 hence any binary value/number consists of a sequence of 0 and 1 one or multiple times with base value 2.
This number system can be represented mathematically as ( … )_{2 }such as (10 )_{2, }( 1011 )_{2, }(10110 )_{2, }etc_{.}
Octal Number System
The base value of an Octal Number System is 8.
The total numbers in this system are 8 (hence the base is 8) i.e. 0,1,2,3,4,5,6, and 7 hence any octal value/number consists of a sequence of 0 to 7 one or multiple times with base value 8.
This number system can be represented mathematically as ( … )_{8 }such as (10)_{8, }(75)_{8, }(32256)_{8, }etc_{.}
Decimal Number System
The base value of a Decimal Number System is 10.
The total numbers in this system are 10 (hence the base is 10) i.e. 0,1,2,3,4,5,6,7,8 and 9 hence any decimal value/number consists of a sequence of 0 to 9 one or multiple times with base value 10.
This number system can be represented mathematically as ( … )_{10 }such as (10)_{10, }(75)_{10, }(30299256)_{10, }etc.
Hexadecimal Number System
The base value of a Hexadecimal Number System is 16.
The total numbers in this system are 16 (hence the base is 16) i.e. 0,1,2,3,4,5,6,7,8,9, A(10), B(11), C(12), D(13), E(14), F(15) hence any hexadecimal value/number consists of a sequence of 0 – 9 and A-F one or multiple times with base value 16.
This number system can be represented mathematically as ( … )_{16 }such as (110)_{16, }(75)_{16, }(302AC)_{16, }etc_{.}
Methods of Number Conversion
There are some common methods used in any type of Number conversion:-
Direct Conversion:
In this method of number conversions, each digit of the original number is converted to the corresponding digit in the target base.
Divide and Conquer Conversion:
In this method of number conversions, the original number is divided by the target base, and the remainder is the rightmost digit. This process is repeated until the quotient is zero or less than the dividend value.
Place Value Conversion:
In this method of number conversions, each place value of the original number is converted to the corresponding place value in the target base.
Through Formulae/Shortcut Method Conversion:
In this method of number conversions, some specific formulas or conventions are used to convert the number.
This method may also contain some exceptions that may not apply to each case.
Example Practices of Number System Conversion
Number system conversions can be understood easily by categorized into two major groups –
Non-Fractional Number Conversions (for Positive Integer values)
This method of conversion of non-fractional numbers can be simplified as –
(1.) First of all we learn to convert Any other numbers to Decimal numbers (Multiplication Method)
(i) Binary Number to Decimal Number
(1101)_{2} to (..?..)_{10}
= (1×2^{3}) + (1×2^{2}) + (0x2^{1}) + (1×2^{0})
= 8 + 4 + 0 + 1
= 13
Thus, (1101)_{2} is equivalent to (13)_{10}
(ii) Octal Number to Decimal Number
(46)_{8} to (..?..)_{10}
= (4×8^{1}) + (6×8^{0})
= 32 + 6
= 38
Thus, (46)_{8} is equivalent to (38)_{10}
(iii) Hexadecimal Number to Decimal Number
(4A6)_{16} to (..?..)_{10}
= (4×16^{2}) + (Ax16^{1}) + (6×16^{0})
= (4×256) + (10×16) + (6×1)
= 1024 + 160 + 6
= 1190
Thus, (4A6)_{16} is equivalent to (1190)_{10}
(2.) Now we learn to convert Decimal numbers to Any other numbers (Division Method)
(a) Decimal Number to Binay Number
(184)_{10} to (..?..)_{2}
Thus, the (184)_{10} is equivalent to ( 10111000 )_{2 } taking from MSB to LSB.
(b) Decimal Number to Octal Number
(484)_{10} to (..?..)8
Thus, the (484)_{10} is equivalent to (744)_{8 } taking from MSB to LSB.
(c) Decimal Number to Hexadecimal Number
(523)_{10} to (..?..)_{16}
Thus, the (523)_{10} is equivalent to (20B)_{16 } taking from MSB to LSB.
(3.) Now we can learn to convert Any number system to Any other number system
(a) Octal Number to Binay Number
Step1: First convert
Octal Number ⇒ Decimal Number (intermediate)
[using above 1 (ii) method]
Step2: Finally convert
Decimal Number (intermediate) ⇒ Binary Number
[using above 2 (a) method]
(b) Binary Number to Hexadecimal Number
Step1: First convert
Binary Number ⇒ Decimal Number (intermediate)
[using above 1 (i) method]
Step2: Finally convert
Decimal Number (intermediate) ⇒ Hexadecimal Number
[using above 2 (c) method]
Fractional Number Conversions (for Positive Float/Real/Values having decimal point)
This method of conversion of fractional numbers can be simplified as –
(AA) First of all, we learn to convert Any other numbers to Decimal numbers
Thus, (4A6.35)_{16} is equivalent to (1190.20703125)_{10}
(BB) Now we learn to convert Decimal numbers to Any other numbers
(a) Decimal Number to Binay Number
(184.625)_{10} to (..?..)_{2}
Step 1: The integer part (here 184) is converted using the 2(a) method above = 10111000.
Step 2: To convert the fractional part (0.625) of a decimal number to binary:-
(i) Multiply the fractional part by 2.
(ii) Record or store the obtained integer part of the result (0 or 1).
(iii) Continue multiplying the remaining fractional part of the result by 2 until we reach a fractional part of 0 or we achieve the desired precision.
Convert the Fractional Part (0.625)
0.625 × 2 = 1.25 → record/strore 1
0.25 × 2 = 0.5 → record/strore 0
0.5 × 2 = 1.0 → record/strore 1
Thus, the fractional binary representation of 0.625 is : ($0.101_2$.
Step 3: Combine the Integer and fractional part result
Thus, the (184.625)_{10} is equivalent to (10111000.101)_{2.}
(b) Decimal Number to Octal Number
(484.375)_{10} to (..?..)8
Step 1: The integer part (here 484) is converted using the 2(b) method above is = 744.
Step 2:To convert the fractional part (0.625) of a decimal number to octal:-
(i) Multiply the fractional part by 8.
(ii) Record or store the obtained integer part of the result (0 to 7).
(iii) Continue multiplying the remaining fractional part of the result by 8 until we reach a fractional part of 0 or we achieve the desired precision.
To Convert Fractional Part 0.375 to Octal
0.375 × 8 = 3.0 → record/store 3
$(always taken from top to bottom) $.
Thus, the octal representation of 0.375 is = ($0.3_8$
Step 3: Now, Combine the Integer and fractional part of the result
Thus, the (484.375)_{10} is equivalent to (744.3)_{8.}
(c) Decimal Number to Hexadecimal Number
(10.625)_{10} to (..?..)_{16}
Step 1: The integer part (here 10) is converted using 2(c) method above is = 10(A).
Step 2:To convert the fractional part (0.625) of a decimal number to hexadecimal:-
(i) Multiply the fractional part by 16.
(ii) Record or store the obtained integer part of the result (0 to 9 and A to F for 10-15).
(iii) Continue multiplying the remaining fractional part of the result by 16 until we reach a fractional part of 0 or we achieve the desired precision.
To Convert Fractional Part 0.625 to Hexadecimal
0.625 × 16 = 10.0 → record/store 10(A)
Thus, the hexadecimal representation of 0.625 is = ($0.3_8$
Step 3: Now, Combine the Integer and fractional part of the result.
Thus, the (10.625)_{10} is equivalent to (A.A)_{16.}
Introduction Adder is a very good example of Combinational Logic Circuits. Definition An adder is a fundamental component in digital electronics devices and is used to perform arithmetic operations, specifically addition. Characteristics Adders are found Read more…
Introduction PLA stands for Programmable Logic Array. Definition A Programmable Logic Array (PLA) is a digital logic device that allows us to implement/create a customized type of combinational logic circuits as needed. Characteristic Features The Read more…
Introduction of Demultiplexer A demultiplexer is also known as a “Demux” or “Data Distributor“. Definition A demultiplexer is a digital logic circuit that takes a single input and distributes it to one of several possible Read more…
0 Comments