SlideShare a Scribd company logo
1 of 21
Number Base Conversions
T.Srikrishna
As, we have four types of number systems so each one
can be converted into the remaining three systems.
These are the following conversions possible in
Number System
• Binary to other Number Systems.
• Decimal to other Number Systems.
• Octal to other Number Systems.
• Hexadecimal to other Number Systems.
T.Srikrishna, M.Sc, M.Tech. GVP
T.Srikrishna, M.Sc, M.Tech. GVP
Decimal to Other Base System
For converting decimal to binary, there are two steps
required to perform, which are as follows:
Convert the integral part of decimal to Other Base System
• In the first step, we perform the division operation on the
integer and the successive quotient with the base of the
new system.
Convert the fractional part of decimal to Other Base System
• Next, we perform the multiplication on the integer and the
successive quotient with the base of the new system .
T.Srikrishna, M.Sc, M.Tech. GVP
Ex 1: Decimal to Binary
• (10.25)10
• Note: Keep multiplying the fractional part with 2 until
decimal part 0.00 is obtained. (0.25)10 = (0.01)2
• Answer: (10.25)10 = (1010.01)2
T.Srikrishna, M.Sc, M.Tech. GVP
• Ex 2: (152.25)10
(152)10=(10011000)2
(0.25)10=(.01)2
T.Srikrishna, M.Sc, M.Tech. GVP
Decimal to Octal
Ex 1: (10.25)10
(10)10 = (12)8
Fractional part:
0.25 x 8 = 2.00
Note: Keep multiplying the fractional part with 8 until decimal part .00 is
obtained. (.25)10 = (.2)8
Answer: (10.25)10 = (12.2)8
Ex 2: (152.25)10
(152)10=(230)8
(0.25)10=(2)8
• So, the octal number of the decimal number 152.25 is 230.2
T.Srikrishna, M.Sc, M.Tech. GVP
Decimal to Hexa:
• Ex1: (10.25)10
(10)10 = ( ? )16
Answer ???
• Ex2: (152.25)10
(152)10=(98)16
(0.25)10=(4)16
So, the hexadecimal number of the decimal number
152.25 is 98.4
T.Srikrishna, M.Sc, M.Tech. GVP
Other Base System to Decimal System
The process starts from multiplying the
digits of given number with its corresponding
positional weights. And lastly, we add all those
products.
T.Srikrishna, M.Sc, M.Tech. GVP
Binary to Decimal
• Ex 1: (1010.01)2 convert into decimal
1×23 + 0x22 + 1×21+ 0x20 + 0x2 -1 + 1×2 -2 = 8+0+2+0+0+0.25 = 10.25
(1010.01)2 = (10.25)10
• Ex 2: (10110.001)2
We multiplied each bit of (10110.001)2 with its respective positional weight, and last
we add the products of all the bits with its weight.
(10110.001)2=(1×24)+(0×23)+(1×22)+(1×21)+(0×20)+ (0×2-1)+(0×2-2)+(1×2-3)
(10110.001)2=(1×16)+(0×8)+(1×4)+(1×2)+(0×1)+ (0×1⁄2)+(0×1⁄4)+(1×1⁄8)
(10110.001)2=16+0+4+2+0+0+0+0.125
(10110.001)2=(22.125 )10
T.Srikrishna, M.Sc, M.Tech. GVP
Octal to Decimal
• Ex 1: (12.2)8
1 x 81 + 2 x 80 +2 x 8-1 = 8+2+0.25 = 10.25
(12.2)8 = (10.25)10
• Ex 2: (152.25)8
(152.25)8=(1×82)+(5×81)+(2×80)+(2×8-1)+(5×8-2)
(152.25)8=64+40+2+(2×1⁄8)+(5×1⁄64)
(152.25)8=64+40+2+0.25+0.078125
(152.25)8=106.328125
• So, the decimal number of the octal number 152.25
is 106.328125
T.Srikrishna, M.Sc, M.Tech. GVP
Hexa to Decimal
• Ex 1: (152A.25)16
• We multiply each digit of 152A.25 with its
respective positional weight, and last we add
the products of all the bits with its weight.
(152A.25)16=(1×163)+(5×162)+(2×161)+(A×160)+(2×16-1)+(5×16-2)
(152A.25)16=(1×4096)+(5×256)+(2×16)+(10×1)+(2×16-1)+(5×16-2)
(152A.25)16=4096+1280+32+10+(2×1⁄16)+(5×1⁄256)
(152A.25)16=5418+0.125+0.125
(152A.25)16=5418.14453125
• So, the decimal number of the hexadecimal
number 152A.25 is 5418.14453125
T.Srikrishna, M.Sc, M.Tech. GVP
Binary to Octal Conversion
• In a binary number, the pair of three bits is equal to one octal digit.
• In the first step, we have to make the pairs of three bits on both sides of the
binary point. If there will be one or two bits left in a pair of three bits pair, we
add the required number of zeros on extreme sides.
• In the second step, we write the octal digits corresponding to each pair.
Ex 1: (111110101011.0011)2
Step 1. Firstly, we make pairs of three bits on both sides of the binary point.
111 110 101 011. 001 1
On the right side of the binary point, the last pair has only one bit. To make
it a complete pair of three bits, we added two zeros on the extreme side.
111 110 101 011. 001 100
Step 2. Then, we wrote the octal digits, which correspond to each pair.
(111110101011.0011)2=(7653.14)8
T.Srikrishna, M.Sc, M.Tech. GVP
Binary to Hexadecimal Conversion
• In a binary number, the pair of four bits is equal to one hexadecimal digit.
• In the first step, we have to make the pairs of four bits on both sides of the
binary point. If there will be one, two, or three bits left in a pair of four bits
pair, we add the required number of zeros on extreme sides.
• In the second step, we write the hexadecimal digits corresponding to each
pair.
Ex1: (10110101011.0011)2
Step 1. Firstly, we make pairs of four bits on both sides of the binary point.
111 1010 1011.0011
On the left side of the binary point, the first pair has three bits. To make it a
complete pair of four bits, add one zero on the extreme side.
0111 1010 1011.0011
Step 2. Then, we write the hexadecimal digits, which correspond to each pair.
(011110101011.0011)2=(7AB.3)16
T.Srikrishna, M.Sc, M.Tech. GVP
Octal to Binary Conversion
• The process of converting octal to binary is the
reverse process of binary to octal. We write the
three bits binary code of each octal number digit.
Ex1: (152.25)8
We write the three-bit binary digit for 1, 5, 2, and 5.
(152.25)8=(001 101 010. 010 101)2
So, the binary number of the octal number
152.25 is (001101010.010101)2
T.Srikrishna, M.Sc, M.Tech. GVP
Octal to hexadecimal conversion
• For converting octal to hexadecimal, there are
two steps required to perform, which are as
follows:
Octal to Binary then Binary to Hexa
• In the first step, we will find the binary
equivalent of the given number .
• Next, we have to make the pairs of four bits
on both sides of the binary point. If there will
be one, two, or three bits left in a pair of four
bits pair, we add the required number of zeros
on extreme sides and write the hexadecimal
digits corresponding to each pair.T.Srikrishna, M.Sc, M.Tech. GVP
Ex1: (152.25)8 convert into Hexa decimal number
Step 1 ( Octal to Binary)
We write the three-bit binary digit for 1, 5, 2, and 5.
(152.25)8=(001101010.010101)2
So, the binary number of the octal number 152.25
is (001101010.010101)2
Step 2 ( Binary to Hexa):
• Now, we make pairs of four bits on both sides of the binary point.
0 0110 1010. 0101 01
• On the left side of the binary point, the first pair has only one digit,
and on the right side, the last pair has only two-digit. To make them
complete pairs of four bits, add zeros on extreme sides.
0000 0110 1010. 0101 0100
• Now, we write the hexadecimal digits, which correspond to each
pair.
(0000 0110 1010.0101 0100)2=(6A.54)16
T.Srikrishna, M.Sc, M.Tech. GVP
Hexadecimal to Binary Conversion
• The process of converting hexadecimal to binary
is the reverse process of binary to hexadecimal.
We write the four bits binary code of each
hexadecimal number digit.
Ex1: (152A.25)16
• We write the four-bit binary digit for 1, 5, A, 2,
and 5.
(152A.25)16=(0001 0101 0010 1010.0010 0101)2
So, the binary number of the hexadecimal number
152.25 is (1010100101010.00100101)2
T.Srikrishna, M.Sc, M.Tech. GVP
Hexadecimal to Octal Conversion
• For converting hexadecimal to octal, there are
two steps required to perform, which are as
follows:
Hexa to Binary then Binary to Octal
• In the first step, we will find the binary equivalent
of the hexadecimal number.
• Next, we have to make the pairs of three bits on
both sides of the binary point. If there will be one
or two bits left in a pair of three bits pair, we add
the required number of zeros on extreme sides
and write the octal digits corresponding to each
pair.
T.Srikrishna, M.Sc, M.Tech. GVP
Ex1: (152A.25)16
Step 1 ( Hexa to Binary) :
• We write the four-bit binary digit for 1, 5, 2, A, and 5.
• (152A.25)16=(0001 0101 0010 1010. 0010 0101)2
Step 2 ( Binary to Octal) :
• Then, we make pairs of three bits on both sides of the
binary point.
001 010 100 101 010. 001 001 010
• Then, we write the octal digit, which corresponds to
each pair.
(001010100101010.001001010)2=(12452.112)8
• So, the octal number of the hexadecimal number
152A.25 is 12452.112
T.Srikrishna, M.Sc, M.Tech. GVP
Have a healthy day
T.Srikrishna, M.Sc, M.Tech. GVP

More Related Content

What's hot

Digital data transmission
Digital data transmissionDigital data transmission
Digital data transmissionBZU lahore
 
Floating point representation
Floating point representationFloating point representation
Floating point representationmissstevenson01
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractorUnsa Shakir
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmeticgavhays
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits DrSonali Vyas
 
01.number systems
01.number systems01.number systems
01.number systemsrasha3
 
Quick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationQuick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationRitu Ranjan Shrivastwa
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversionMukesh Tekwani
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsSSE_AndyLi
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codesRevathi Subramaniam
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notesKurenai Ryu
 
Code conversions.pptx415.pptx
Code conversions.pptx415.pptxCode conversions.pptx415.pptx
Code conversions.pptx415.pptxMariaJoseph591921
 
Binary octal
Binary octalBinary octal
Binary octaldrdipo4
 
Number system
Number systemNumber system
Number systemkashee99
 
Error Detection and Correction presentation
Error Detection and Correction presentation Error Detection and Correction presentation
Error Detection and Correction presentation Badrul Alam
 

What's hot (20)

Digital data transmission
Digital data transmissionDigital data transmission
Digital data transmission
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
adder and subtractor
 adder and subtractor adder and subtractor
adder and subtractor
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
01.number systems
01.number systems01.number systems
01.number systems
 
Quick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationQuick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representation
 
Hexadecimal to octal conversion
Hexadecimal to octal conversionHexadecimal to octal conversion
Hexadecimal to octal conversion
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
 
K - Map
  K - Map    K - Map
K - Map
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codes
 
Number system utm notes
Number system utm notesNumber system utm notes
Number system utm notes
 
Code conversions.pptx415.pptx
Code conversions.pptx415.pptxCode conversions.pptx415.pptx
Code conversions.pptx415.pptx
 
Digital Logic Design
Digital Logic Design Digital Logic Design
Digital Logic Design
 
Binary codes
Binary codesBinary codes
Binary codes
 
Multiplexers
MultiplexersMultiplexers
Multiplexers
 
Binary octal
Binary octalBinary octal
Binary octal
 
Number System
Number SystemNumber System
Number System
 
Number system
Number systemNumber system
Number system
 
Error Detection and Correction presentation
Error Detection and Correction presentation Error Detection and Correction presentation
Error Detection and Correction presentation
 

Similar to Number Base Conversion Digital Electronics

Similar to Number Base Conversion Digital Electronics (20)

Alu1
Alu1Alu1
Alu1
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
Data representation notes class 11
Data representation notes class 11Data representation notes class 11
Data representation notes class 11
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
 
Number Systems - AK.pptx
Number Systems - AK.pptxNumber Systems - AK.pptx
Number Systems - AK.pptx
 
Standard 9th Number System Power point presentation
Standard 9th Number System Power point presentationStandard 9th Number System Power point presentation
Standard 9th Number System Power point presentation
 
Lecture 2 ns
Lecture 2 nsLecture 2 ns
Lecture 2 ns
 
Data representation
Data representationData representation
Data representation
 
Finite word length effects
Finite word length effectsFinite word length effects
Finite word length effects
 
Number_Systems (2).ppt
Number_Systems (2).pptNumber_Systems (2).ppt
Number_Systems (2).ppt
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
 
Number system
Number systemNumber system
Number system
 
Number system with conversions www.eakanchha.com
Number system with conversions www.eakanchha.comNumber system with conversions www.eakanchha.com
Number system with conversions www.eakanchha.com
 
digitalelectronics.ppt
digitalelectronics.pptdigitalelectronics.ppt
digitalelectronics.ppt
 
B sc3 unit 2 number system
B sc3  unit 2 number systemB sc3  unit 2 number system
B sc3 unit 2 number system
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 

More from Srikrishna Thota

solar energy introduction.pdf
 solar energy introduction.pdf solar energy introduction.pdf
solar energy introduction.pdfSrikrishna Thota
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdfSrikrishna Thota
 
Types of Microcontrollers.pdf
Types of Microcontrollers.pdfTypes of Microcontrollers.pdf
Types of Microcontrollers.pdfSrikrishna Thota
 
Addressing modes of 8051.pdf
Addressing modes of 8051.pdfAddressing modes of 8051.pdf
Addressing modes of 8051.pdfSrikrishna Thota
 
Port Organization of 8051 .pdf
Port Organization of 8051 .pdfPort Organization of 8051 .pdf
Port Organization of 8051 .pdfSrikrishna Thota
 
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfDEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfSrikrishna Thota
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfSrikrishna Thota
 
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfInterfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfSrikrishna Thota
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSrikrishna Thota
 
interfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfinterfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfSrikrishna Thota
 
BInary Number Representation
 BInary Number Representation BInary Number Representation
BInary Number RepresentationSrikrishna Thota
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes Srikrishna Thota
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesSrikrishna Thota
 
Analog to Digital Conversion Basics
Analog to Digital Conversion BasicsAnalog to Digital Conversion Basics
Analog to Digital Conversion BasicsSrikrishna Thota
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controllerSrikrishna Thota
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chipsSrikrishna Thota
 

More from Srikrishna Thota (19)

solar energy introduction.pdf
 solar energy introduction.pdf solar energy introduction.pdf
solar energy introduction.pdf
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf
 
Types of Microcontrollers.pdf
Types of Microcontrollers.pdfTypes of Microcontrollers.pdf
Types of Microcontrollers.pdf
 
Addressing modes of 8051.pdf
Addressing modes of 8051.pdfAddressing modes of 8051.pdf
Addressing modes of 8051.pdf
 
interrupts of 8051.pdf
interrupts of 8051.pdfinterrupts of 8051.pdf
interrupts of 8051.pdf
 
Port Organization of 8051 .pdf
Port Organization of 8051 .pdfPort Organization of 8051 .pdf
Port Organization of 8051 .pdf
 
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdfDEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdfInterfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdf
 
interfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdfinterfacing of temperature sensor LM 35 with 8051.pdf
interfacing of temperature sensor LM 35 with 8051.pdf
 
BInary Number Representation
 BInary Number Representation BInary Number Representation
BInary Number Representation
 
Operational amplifiers
Operational amplifiers Operational amplifiers
Operational amplifiers
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
 
The 8255 PPI
The 8255 PPIThe 8255 PPI
The 8255 PPI
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
Analog to Digital Conversion Basics
Analog to Digital Conversion BasicsAnalog to Digital Conversion Basics
Analog to Digital Conversion Basics
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Recently uploaded (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 

Number Base Conversion Digital Electronics

  • 2. As, we have four types of number systems so each one can be converted into the remaining three systems. These are the following conversions possible in Number System • Binary to other Number Systems. • Decimal to other Number Systems. • Octal to other Number Systems. • Hexadecimal to other Number Systems. T.Srikrishna, M.Sc, M.Tech. GVP
  • 4. Decimal to Other Base System For converting decimal to binary, there are two steps required to perform, which are as follows: Convert the integral part of decimal to Other Base System • In the first step, we perform the division operation on the integer and the successive quotient with the base of the new system. Convert the fractional part of decimal to Other Base System • Next, we perform the multiplication on the integer and the successive quotient with the base of the new system . T.Srikrishna, M.Sc, M.Tech. GVP
  • 5. Ex 1: Decimal to Binary • (10.25)10 • Note: Keep multiplying the fractional part with 2 until decimal part 0.00 is obtained. (0.25)10 = (0.01)2 • Answer: (10.25)10 = (1010.01)2 T.Srikrishna, M.Sc, M.Tech. GVP
  • 6. • Ex 2: (152.25)10 (152)10=(10011000)2 (0.25)10=(.01)2 T.Srikrishna, M.Sc, M.Tech. GVP
  • 7. Decimal to Octal Ex 1: (10.25)10 (10)10 = (12)8 Fractional part: 0.25 x 8 = 2.00 Note: Keep multiplying the fractional part with 8 until decimal part .00 is obtained. (.25)10 = (.2)8 Answer: (10.25)10 = (12.2)8 Ex 2: (152.25)10 (152)10=(230)8 (0.25)10=(2)8 • So, the octal number of the decimal number 152.25 is 230.2 T.Srikrishna, M.Sc, M.Tech. GVP
  • 8. Decimal to Hexa: • Ex1: (10.25)10 (10)10 = ( ? )16 Answer ??? • Ex2: (152.25)10 (152)10=(98)16 (0.25)10=(4)16 So, the hexadecimal number of the decimal number 152.25 is 98.4 T.Srikrishna, M.Sc, M.Tech. GVP
  • 9. Other Base System to Decimal System The process starts from multiplying the digits of given number with its corresponding positional weights. And lastly, we add all those products. T.Srikrishna, M.Sc, M.Tech. GVP
  • 10. Binary to Decimal • Ex 1: (1010.01)2 convert into decimal 1×23 + 0x22 + 1×21+ 0x20 + 0x2 -1 + 1×2 -2 = 8+0+2+0+0+0.25 = 10.25 (1010.01)2 = (10.25)10 • Ex 2: (10110.001)2 We multiplied each bit of (10110.001)2 with its respective positional weight, and last we add the products of all the bits with its weight. (10110.001)2=(1×24)+(0×23)+(1×22)+(1×21)+(0×20)+ (0×2-1)+(0×2-2)+(1×2-3) (10110.001)2=(1×16)+(0×8)+(1×4)+(1×2)+(0×1)+ (0×1⁄2)+(0×1⁄4)+(1×1⁄8) (10110.001)2=16+0+4+2+0+0+0+0.125 (10110.001)2=(22.125 )10 T.Srikrishna, M.Sc, M.Tech. GVP
  • 11. Octal to Decimal • Ex 1: (12.2)8 1 x 81 + 2 x 80 +2 x 8-1 = 8+2+0.25 = 10.25 (12.2)8 = (10.25)10 • Ex 2: (152.25)8 (152.25)8=(1×82)+(5×81)+(2×80)+(2×8-1)+(5×8-2) (152.25)8=64+40+2+(2×1⁄8)+(5×1⁄64) (152.25)8=64+40+2+0.25+0.078125 (152.25)8=106.328125 • So, the decimal number of the octal number 152.25 is 106.328125 T.Srikrishna, M.Sc, M.Tech. GVP
  • 12. Hexa to Decimal • Ex 1: (152A.25)16 • We multiply each digit of 152A.25 with its respective positional weight, and last we add the products of all the bits with its weight. (152A.25)16=(1×163)+(5×162)+(2×161)+(A×160)+(2×16-1)+(5×16-2) (152A.25)16=(1×4096)+(5×256)+(2×16)+(10×1)+(2×16-1)+(5×16-2) (152A.25)16=4096+1280+32+10+(2×1⁄16)+(5×1⁄256) (152A.25)16=5418+0.125+0.125 (152A.25)16=5418.14453125 • So, the decimal number of the hexadecimal number 152A.25 is 5418.14453125 T.Srikrishna, M.Sc, M.Tech. GVP
  • 13. Binary to Octal Conversion • In a binary number, the pair of three bits is equal to one octal digit. • In the first step, we have to make the pairs of three bits on both sides of the binary point. If there will be one or two bits left in a pair of three bits pair, we add the required number of zeros on extreme sides. • In the second step, we write the octal digits corresponding to each pair. Ex 1: (111110101011.0011)2 Step 1. Firstly, we make pairs of three bits on both sides of the binary point. 111 110 101 011. 001 1 On the right side of the binary point, the last pair has only one bit. To make it a complete pair of three bits, we added two zeros on the extreme side. 111 110 101 011. 001 100 Step 2. Then, we wrote the octal digits, which correspond to each pair. (111110101011.0011)2=(7653.14)8 T.Srikrishna, M.Sc, M.Tech. GVP
  • 14. Binary to Hexadecimal Conversion • In a binary number, the pair of four bits is equal to one hexadecimal digit. • In the first step, we have to make the pairs of four bits on both sides of the binary point. If there will be one, two, or three bits left in a pair of four bits pair, we add the required number of zeros on extreme sides. • In the second step, we write the hexadecimal digits corresponding to each pair. Ex1: (10110101011.0011)2 Step 1. Firstly, we make pairs of four bits on both sides of the binary point. 111 1010 1011.0011 On the left side of the binary point, the first pair has three bits. To make it a complete pair of four bits, add one zero on the extreme side. 0111 1010 1011.0011 Step 2. Then, we write the hexadecimal digits, which correspond to each pair. (011110101011.0011)2=(7AB.3)16 T.Srikrishna, M.Sc, M.Tech. GVP
  • 15. Octal to Binary Conversion • The process of converting octal to binary is the reverse process of binary to octal. We write the three bits binary code of each octal number digit. Ex1: (152.25)8 We write the three-bit binary digit for 1, 5, 2, and 5. (152.25)8=(001 101 010. 010 101)2 So, the binary number of the octal number 152.25 is (001101010.010101)2 T.Srikrishna, M.Sc, M.Tech. GVP
  • 16. Octal to hexadecimal conversion • For converting octal to hexadecimal, there are two steps required to perform, which are as follows: Octal to Binary then Binary to Hexa • In the first step, we will find the binary equivalent of the given number . • Next, we have to make the pairs of four bits on both sides of the binary point. If there will be one, two, or three bits left in a pair of four bits pair, we add the required number of zeros on extreme sides and write the hexadecimal digits corresponding to each pair.T.Srikrishna, M.Sc, M.Tech. GVP
  • 17. Ex1: (152.25)8 convert into Hexa decimal number Step 1 ( Octal to Binary) We write the three-bit binary digit for 1, 5, 2, and 5. (152.25)8=(001101010.010101)2 So, the binary number of the octal number 152.25 is (001101010.010101)2 Step 2 ( Binary to Hexa): • Now, we make pairs of four bits on both sides of the binary point. 0 0110 1010. 0101 01 • On the left side of the binary point, the first pair has only one digit, and on the right side, the last pair has only two-digit. To make them complete pairs of four bits, add zeros on extreme sides. 0000 0110 1010. 0101 0100 • Now, we write the hexadecimal digits, which correspond to each pair. (0000 0110 1010.0101 0100)2=(6A.54)16 T.Srikrishna, M.Sc, M.Tech. GVP
  • 18. Hexadecimal to Binary Conversion • The process of converting hexadecimal to binary is the reverse process of binary to hexadecimal. We write the four bits binary code of each hexadecimal number digit. Ex1: (152A.25)16 • We write the four-bit binary digit for 1, 5, A, 2, and 5. (152A.25)16=(0001 0101 0010 1010.0010 0101)2 So, the binary number of the hexadecimal number 152.25 is (1010100101010.00100101)2 T.Srikrishna, M.Sc, M.Tech. GVP
  • 19. Hexadecimal to Octal Conversion • For converting hexadecimal to octal, there are two steps required to perform, which are as follows: Hexa to Binary then Binary to Octal • In the first step, we will find the binary equivalent of the hexadecimal number. • Next, we have to make the pairs of three bits on both sides of the binary point. If there will be one or two bits left in a pair of three bits pair, we add the required number of zeros on extreme sides and write the octal digits corresponding to each pair. T.Srikrishna, M.Sc, M.Tech. GVP
  • 20. Ex1: (152A.25)16 Step 1 ( Hexa to Binary) : • We write the four-bit binary digit for 1, 5, 2, A, and 5. • (152A.25)16=(0001 0101 0010 1010. 0010 0101)2 Step 2 ( Binary to Octal) : • Then, we make pairs of three bits on both sides of the binary point. 001 010 100 101 010. 001 001 010 • Then, we write the octal digit, which corresponds to each pair. (001010100101010.001001010)2=(12452.112)8 • So, the octal number of the hexadecimal number 152A.25 is 12452.112 T.Srikrishna, M.Sc, M.Tech. GVP
  • 21. Have a healthy day T.Srikrishna, M.Sc, M.Tech. GVP