SlideShare a Scribd company logo
1 of 16
Number Systems
Presented by:
Prof. Anil Khurana
Department of Management Studies
Deenbandhu Chhotu Ram University of Science & Technology, Murthal
Number System
Why do we need more number systems?
• Humans understand decimal
• Digital electronics (computers) understand binary
• Since computers have 32, 64, and even 128 bit busses, displaying numbers in binary is
cumbersome.
• Data on a 32 bit data bus would look like the following:
0110 1001 0111 0001 0011 0100 1100 1010
• Hexadecimal (base 16) and octal (base 8) number systems are used to represent binary data in
a more compact form.
• This presentation will present an overview of the process for converting numbers between the
decimal number system and the hexadecimal & octal number systems.
Check out my ten digits !
2
Converting To and From Decimal
Successive
Division
Hexadecimal16
0 1 2 3 4 5 6 7 8 9 A B C D E F
Weighted
Multiplication
Successive
Division
Weighted
Multiplication
Octal8
0 1 2 3 4 5 6 7
Successive
Division
Weighted
Multiplication
Binary2
0 1
Decimal10
0 1 2 3 4 5 6 7 8 9
3
Counting . . . 2, 8, 10, 16
Decimal Binary Octal Hexadecimal
0 0000 0 0
1 0001 1 1
2 0010 2 2
3 0011 3 3
4 0100 4 4
5 0101 5 5
6 0110 6 6
7 0111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F 4
Conversion: Decimal ↔ Binary
Successive
Division
a) Divide the decimal number by 2; the remainder is the LSB of the binary number.
b) If the quotation is zero, the conversion is complete. Otherwise repeat step (a) using the quotation as the
decimal number. The new remainder is the next most significant bit of the binary number.
a) Multiply each bit of the binary number by its corresponding bit-weighting factor (i.e., Bit-0→20=1; Bit-
1→21=2; Bit-2→22=4; etc).
b) Sum up all of the products in step (a) to get the decimal number.
Weighted
Multiplication
5
Conversion Process Decimal ↔ BaseN
(Any base including Binary2, Octal8, Hexidecimal16)
Successive
Division
a) Divide the decimal number by N; the remainder is the LSB of the ANY BASE Number .
b) If the quotient is zero, the conversion is complete. Otherwise repeat step (a) using the quotient as the
decimal number. The new remainder is the next most significant bit of the ANY BASE number.
a) Multiply each bit of the ANY BASE number by its corresponding bit-weighting factor (i.e., Bit-0→N0; Bit-
1→N1; Bit-2→N2; etc).
b) Sum up all of the products in step (a) to get the decimal number.
Weighted
Multiplication
6
Decimal to Binary
• Decimal numbers can be converted to binary by repeated division of
the number by 2 while recording the remainder. Let’s take an example
to see how this happens.
The remainders are to be read
from bottom to top to obtain
the binary equivalent.
4310 = 1010112
7
Binary to Decimal
• The Process: Weighted Multiplication
• Multiply each bit of the Binary Number by its corresponding bit-weighting factor (i.e., Bit-
0→20=1; Bit-1→21=2; Bit-2→32=8; etc.).
• Sum up all of the products in step (a) to get the decimal number.
• Example: Convert the Binary number 1101102 into its decimal equivalent.
 110110 2 = 5410
Bit-Weighting
Factors
8
1 1 0 1 1 0
25 24 23 22 21 20
32 16 8 4 2 1
1 x 32 1 x 16 0 x 8 1 x 4 1 x 2 + 0 x 1
32 + 16 + 0 + 4 + 2 + 0 = 5410
Decimal to Octal
• Decimal numbers can be converted to octal by repeated division of
the number by 8 while recording the remainder. Let’s take an example
to see how this happens.
Reading the remainders from bottom to top,
47310 = 7318 9
Octal to Decimal
• The Process: Weighted Multiplication
• Multiply each bit of the Octal Number by its corresponding bit-weighting factor (i.e., Bit-
0→80=1; Bit-1→81=8; Bit-2→82=64; etc.).
• Sum up all of the products in step (a) to get the decimal number.
• Example: Convert the Octal number 1368 into its decimal equivalent.
1 3 6
82 81 80
64 8 1
64 + 24 + 6 = 9410
Bit-Weighting
Factors
 136 8 = 9410
10
Decimal to Hexadecimal
• Decimal numbers can be converted to octal by repeated division of
the number by 16 while recording the remainder. Let’s take an
example to see how this happens.
Reading the remainders from bottom to top we get,
42310 = 1A716
11
Hexadecimal to Binary
• The Process: Weighted Multiplication
• Multiply each bit of the hexadecimal number by its corresponding bit-weighting factor (i.e.,
Bit-0→160=1; Bit-1→161=16; Bit-2→162=256; etc.).
• Sum up all of the products in step (a) to get the decimal number.
• Example:
• Convert the octal number 5E16 into its decimal equivalent.
5 E
161 160
16 1
80 + 14 = 9410
Bit-Weighting
Factors  5E 16 = 9410
12
Binary to Octal
• To convert a binary number to octal number, these
steps are followed −
• Starting from the least significant bit, make groups of
three bits.
• If there are one or two bits less in making the groups,
0s can be added after the most significant bit
• Convert each group into its equivalent octal number
• Let’s take an example to understand this.
10110010102 = 26258
13
Octal To Binary
• To convert an octal number to binary, each octal digit is converted to
its 3-bit binary equivalent according to this table.
Octal Digit 0 1 2 3 4 5 6 7
Binary Equivalent 000 001 010 011 100 101 110 111
546738 = 1011001101110112
14
Binary to Hexadecimal
• To convert a binary number to hexadecimal
number, these steps are followed −
• Starting from the least significant bit, make groups
of four bits.
• If there are one or two bits less in making the
groups, 0s can be added after the most significant
bit.
• Convert each group into its equivalent octal
number.
• Let’s take an example to understand this.
101101101012 = DB516
15
Hexadecimal to Binary
• To convert an hexadecimal number to binary, each hexadecimal digit
is converted to its 4-bit binary equivalent.
Octal Digit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Binary
Equivalent
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
9A4E516 = 100110100100111001012
16

More Related Content

Similar to Number Systems - AK.pptx

Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Jumaed
 
Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptxHamnaKhalid25
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdfAsthaChaurasia4
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptxkhalidkk6
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptxODAATUBE1
 
Course Name: Digital System Design Number System.pdf
Course Name: Digital System Design Number System.pdfCourse Name: Digital System Design Number System.pdf
Course Name: Digital System Design Number System.pdfMdJubayerFaisalEmon
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversionsSusantha Herath
 
02 number systems
02 number systems02 number systems
02 number systemsjohn01383
 
Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02muhammadsarab
 
data representation
 data representation data representation
data representationHaroon_007
 
Binary octal
Binary octalBinary octal
Binary octaldrdipo4
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number Systemkclove
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital ElectronicsJanki Shah
 
1663694151.pdf
1663694151.pdf1663694151.pdf
1663694151.pdfnostavimle
 

Similar to Number Systems - AK.pptx (20)

Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptx
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
Computer Number system
Computer Number systemComputer Number system
Computer Number system
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdf
 
Number System and Conversions.pptx
Number System and Conversions.pptxNumber System and Conversions.pptx
Number System and Conversions.pptx
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Course Name: Digital System Design Number System.pdf
Course Name: Digital System Design Number System.pdfCourse Name: Digital System Design Number System.pdf
Course Name: Digital System Design Number System.pdf
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
 
Number system
Number systemNumber system
Number system
 
Number system
Number systemNumber system
Number system
 
02 number systems
02 number systems02 number systems
02 number systems
 
Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02
 
data representation
 data representation data representation
data representation
 
Binary octal
Binary octalBinary octal
Binary octal
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number System
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
1663694151.pdf
1663694151.pdf1663694151.pdf
1663694151.pdf
 

Recently uploaded

Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAbdelrhman abooda
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 

Recently uploaded (20)

Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 

Number Systems - AK.pptx

  • 1. Number Systems Presented by: Prof. Anil Khurana Department of Management Studies Deenbandhu Chhotu Ram University of Science & Technology, Murthal
  • 2. Number System Why do we need more number systems? • Humans understand decimal • Digital electronics (computers) understand binary • Since computers have 32, 64, and even 128 bit busses, displaying numbers in binary is cumbersome. • Data on a 32 bit data bus would look like the following: 0110 1001 0111 0001 0011 0100 1100 1010 • Hexadecimal (base 16) and octal (base 8) number systems are used to represent binary data in a more compact form. • This presentation will present an overview of the process for converting numbers between the decimal number system and the hexadecimal & octal number systems. Check out my ten digits ! 2
  • 3. Converting To and From Decimal Successive Division Hexadecimal16 0 1 2 3 4 5 6 7 8 9 A B C D E F Weighted Multiplication Successive Division Weighted Multiplication Octal8 0 1 2 3 4 5 6 7 Successive Division Weighted Multiplication Binary2 0 1 Decimal10 0 1 2 3 4 5 6 7 8 9 3
  • 4. Counting . . . 2, 8, 10, 16 Decimal Binary Octal Hexadecimal 0 0000 0 0 1 0001 1 1 2 0010 2 2 3 0011 3 3 4 0100 4 4 5 0101 5 5 6 0110 6 6 7 0111 7 7 8 1000 10 8 9 1001 11 9 10 1010 12 A 11 1011 13 B 12 1100 14 C 13 1101 15 D 14 1110 16 E 15 1111 17 F 4
  • 5. Conversion: Decimal ↔ Binary Successive Division a) Divide the decimal number by 2; the remainder is the LSB of the binary number. b) If the quotation is zero, the conversion is complete. Otherwise repeat step (a) using the quotation as the decimal number. The new remainder is the next most significant bit of the binary number. a) Multiply each bit of the binary number by its corresponding bit-weighting factor (i.e., Bit-0→20=1; Bit- 1→21=2; Bit-2→22=4; etc). b) Sum up all of the products in step (a) to get the decimal number. Weighted Multiplication 5
  • 6. Conversion Process Decimal ↔ BaseN (Any base including Binary2, Octal8, Hexidecimal16) Successive Division a) Divide the decimal number by N; the remainder is the LSB of the ANY BASE Number . b) If the quotient is zero, the conversion is complete. Otherwise repeat step (a) using the quotient as the decimal number. The new remainder is the next most significant bit of the ANY BASE number. a) Multiply each bit of the ANY BASE number by its corresponding bit-weighting factor (i.e., Bit-0→N0; Bit- 1→N1; Bit-2→N2; etc). b) Sum up all of the products in step (a) to get the decimal number. Weighted Multiplication 6
  • 7. Decimal to Binary • Decimal numbers can be converted to binary by repeated division of the number by 2 while recording the remainder. Let’s take an example to see how this happens. The remainders are to be read from bottom to top to obtain the binary equivalent. 4310 = 1010112 7
  • 8. Binary to Decimal • The Process: Weighted Multiplication • Multiply each bit of the Binary Number by its corresponding bit-weighting factor (i.e., Bit- 0→20=1; Bit-1→21=2; Bit-2→32=8; etc.). • Sum up all of the products in step (a) to get the decimal number. • Example: Convert the Binary number 1101102 into its decimal equivalent.  110110 2 = 5410 Bit-Weighting Factors 8 1 1 0 1 1 0 25 24 23 22 21 20 32 16 8 4 2 1 1 x 32 1 x 16 0 x 8 1 x 4 1 x 2 + 0 x 1 32 + 16 + 0 + 4 + 2 + 0 = 5410
  • 9. Decimal to Octal • Decimal numbers can be converted to octal by repeated division of the number by 8 while recording the remainder. Let’s take an example to see how this happens. Reading the remainders from bottom to top, 47310 = 7318 9
  • 10. Octal to Decimal • The Process: Weighted Multiplication • Multiply each bit of the Octal Number by its corresponding bit-weighting factor (i.e., Bit- 0→80=1; Bit-1→81=8; Bit-2→82=64; etc.). • Sum up all of the products in step (a) to get the decimal number. • Example: Convert the Octal number 1368 into its decimal equivalent. 1 3 6 82 81 80 64 8 1 64 + 24 + 6 = 9410 Bit-Weighting Factors  136 8 = 9410 10
  • 11. Decimal to Hexadecimal • Decimal numbers can be converted to octal by repeated division of the number by 16 while recording the remainder. Let’s take an example to see how this happens. Reading the remainders from bottom to top we get, 42310 = 1A716 11
  • 12. Hexadecimal to Binary • The Process: Weighted Multiplication • Multiply each bit of the hexadecimal number by its corresponding bit-weighting factor (i.e., Bit-0→160=1; Bit-1→161=16; Bit-2→162=256; etc.). • Sum up all of the products in step (a) to get the decimal number. • Example: • Convert the octal number 5E16 into its decimal equivalent. 5 E 161 160 16 1 80 + 14 = 9410 Bit-Weighting Factors  5E 16 = 9410 12
  • 13. Binary to Octal • To convert a binary number to octal number, these steps are followed − • Starting from the least significant bit, make groups of three bits. • If there are one or two bits less in making the groups, 0s can be added after the most significant bit • Convert each group into its equivalent octal number • Let’s take an example to understand this. 10110010102 = 26258 13
  • 14. Octal To Binary • To convert an octal number to binary, each octal digit is converted to its 3-bit binary equivalent according to this table. Octal Digit 0 1 2 3 4 5 6 7 Binary Equivalent 000 001 010 011 100 101 110 111 546738 = 1011001101110112 14
  • 15. Binary to Hexadecimal • To convert a binary number to hexadecimal number, these steps are followed − • Starting from the least significant bit, make groups of four bits. • If there are one or two bits less in making the groups, 0s can be added after the most significant bit. • Convert each group into its equivalent octal number. • Let’s take an example to understand this. 101101101012 = DB516 15
  • 16. Hexadecimal to Binary • To convert an hexadecimal number to binary, each hexadecimal digit is converted to its 4-bit binary equivalent. Octal Digit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary Equivalent 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 9A4E516 = 100110100100111001012 16