SlideShare a Scribd company logo
1 of 4
Download to read offline
http://www.tutorialspoint.com/computer_logical_organization/number_system_conversion.htm
Copyright © tutorialspoint.com
NUMBER SYSTEM CONVERSIONNUMBER SYSTEM CONVERSION
There are many methods or techniques which can be used to convert numbers from one base to
another. We'll demonstrate here the following −
Decimal to Other Base System
Other Base System to Decimal
Other Base System to Non-Decimal
Shortcut method − Binary to Octal
Shortcut method − Octal to Binary
Shortcut method − Binary to Hexadecimal
Shortcut method − Hexadecimal to Binary
Decimal to Other Base System
Steps
Step 1 − Divide the decimal number to be converted by the value of the new base.
Step 2 − Get the remainder from Step 1 as the rightmost digit leastsignificantdigit of new base
number.
Step 3 − Divide the quotient of the previous divide by the new base.
Step 4 − Record the remainder from Step 3 as the next digit totheleft of the new base
number.
Repeat Steps 3 and 4, getting remainders from right to left, until the quotient becomes zero in Step
3.
The last remainder thus obtained will be the Most Significant Digit MSD of the new base number.
Example −
Decimal Number: 2910
Calculating Binary Equivalent −
Step Operation Result Remainder
Step 1 29 / 2 14 1
Step 2 14 / 2 7 0
Step 3 7 / 2 3 1
Step 4 3 / 2 1 1
Step 5 1 / 2 0 1
As mentioned in Steps 2 and 4, the remainders have to be arranged in the reverse order so that
the first remainder becomes the Least Significant Digit LSD and the last remainder becomes the
Most Significant Digit MSD.
Decimal Number − 2910 = Binary Number − 111012.
Other Base System to Decimal System
Steps
Step 1 − Determine the column positional value of each digit
thisdependsonthepositionofthedigitandthebaseofthenumbersystem.
Step 2 − Multiply the obtained column values inStep1 by the digits in the corresponding
columns.
Step 3 − Sum the products calculated in Step 2. The total is the equivalent value in decimal.
Example
Binary Number − 111012
Calculating Decimal Equivalent −
Step Binary
Number
Decimal Number
Step 1 111012 ((1 × 24) + (1 × 23) + (1 × 22) + (0 × 21) + (1 ×
20))10
Step 2 111012 16 + 8 + 4 + 0 + 1 10
Step 3 111012 2910
Binary Number − 111012 = Decimal Number − 2910
Other Base System to Non-Decimal System
Steps
Step 1 − Convert the original number to a decimal number base10.
Step 2 − Convert the decimal number so obtained to the new base number.
Example
Octal Number − 258
Calculating Binary Equivalent −
Step 1 − Convert to Decimal
Step Octal Number Decimal Number
Step 1 258 ((2 × 81) + (5 × 80))10
Step 2 258 16 + 5 10
Step 3 258 2110
Octal Number − 258 = Decimal Number − 2110
Step 2 − Convert Decimal to Binary
Step Operation Result Remainder
Step 1 21 / 2 10 1
Step 2 10 / 2 5 0
Step 3 5 / 2 2 1
Step 4 2 / 2 1 0
Step 5 1 / 2 0 1
Decimal Number − 2110 = Binary Number − 101012
Octal Number − 258 = Binary Number − 101012
Shortcut method - Binary to Octal
Steps
Step 1 − Divide the binary digits into groups of three startingfromtheright.
Step 2 − Convert each group of three binary digits to one octal digit.
Example
Binary Number − 101012
Calculating Octal Equivalent −
Step Binary Number Octal Number
Step 1 101012 010 101
Step 2 101012 28 58
Step 3 101012 258
Binary Number − 101012 = Octal Number − 258
Shortcut method - Octal to Binary
Steps
Step 1 − Convert each octal digit to a 3 digit binary number
theoctaldigitsmaybetreatedasdecimalforthisconversion.
Step 2 − Combine all the resulting binary groups of3digitseach into a single binary number.
Example
Octal Number − 258
Calculating Binary Equivalent −
Step Octal Number Binary Number
Step 1 258 210 510
Step 2 258 0102 1012
Step 3 258 0101012
Octal Number − 258 = Binary Number − 101012
Shortcut method - Binary to Hexadecimal
Steps
Step 1 − Divide the binary digits into groups of four startingfromtheright.
Step 2 − Convert each group of four binary digits to one hexadecimal symbol.
Example
Binary Number − 101012
Calculating hexadecimal Equivalent −
Step Binary Number Hexadecimal Number
Step 1 101012 0001 0101
Step 2 101012 110 510
Step 3 101012 1516
Binary Number − 101012 = Hexadecimal Number − 1516
Shortcut method - Hexadecimal to Binary
Steps
Step 1 − Convert each hexadecimal digit to a 4 digit binary number
thehexadecimaldigitsmaybetreatedasdecimalforthisconversion.
Step 2 − Combine all the resulting binary groups of4digitseach into a single binary number.
Example
Hexadecimal Number − 1516
Calculating Binary Equivalent −
Step Hexadecimal Number Binary Number
Step 1 1516 110 510
Step 2 1516 00012 01012
Step 3 1516 000101012
Hexadecimal Number − 1516 = Binary Number − 101012
Loading [MathJax]/jax/output/HTML-CSS/jax.js

More Related Content

What's hot

Binary number ppt
Binary number pptBinary number ppt
Binary number pptAnkit Gupta
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes VandanaPagar1
 
binary number system
 binary number system binary number system
binary number systemvishal gupta
 
1's and 2's complement
1's and 2's complement 1's and 2's complement
1's and 2's complement Shiraz Azeem
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Lovely Singh
 
Number system and its conversions
Number system and its conversionsNumber system and its conversions
Number system and its conversionsShilpaKrishna6
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmeticgavhays
 
Conversion of number system with base concept
Conversion of number system with base conceptConversion of number system with base concept
Conversion of number system with base conceptUniversity of Potsdam
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental Aman anand kumar
 
Singly Linked List Explained
Singly Linked List ExplainedSingly Linked List Explained
Singly Linked List ExplainedSimplilearn
 
我已有一台無線分享器,但訊號不好,要如何使用N100RE的中繼功能來延伸原本的訊號呢
我已有一台無線分享器,但訊號不好,要如何使用N100RE的中繼功能來延伸原本的訊號呢我已有一台無線分享器,但訊號不好,要如何使用N100RE的中繼功能來延伸原本的訊號呢
我已有一台無線分享器,但訊號不好,要如何使用N100RE的中繼功能來延伸原本的訊號呢臺灣塔米歐
 

What's hot (20)

Number system
Number systemNumber system
Number system
 
Number System
Number SystemNumber System
Number System
 
Binary number ppt
Binary number pptBinary number ppt
Binary number ppt
 
Data representation
Data representationData representation
Data representation
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
 
binary number system
 binary number system binary number system
binary number system
 
1's and 2's complement
1's and 2's complement 1's and 2's complement
1's and 2's complement
 
Big o notation
Big o notationBig o notation
Big o notation
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)
 
Binary to Decimal Conversion
Binary to Decimal ConversionBinary to Decimal Conversion
Binary to Decimal Conversion
 
Number system and its conversions
Number system and its conversionsNumber system and its conversions
Number system and its conversions
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Conversion of number system with base concept
Conversion of number system with base conceptConversion of number system with base concept
Conversion of number system with base concept
 
Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
Binary codes
Binary codesBinary codes
Binary codes
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
 
Singly Linked List Explained
Singly Linked List ExplainedSingly Linked List Explained
Singly Linked List Explained
 
我已有一台無線分享器,但訊號不好,要如何使用N100RE的中繼功能來延伸原本的訊號呢
我已有一台無線分享器,但訊號不好,要如何使用N100RE的中繼功能來延伸原本的訊號呢我已有一台無線分享器,但訊號不好,要如何使用N100RE的中繼功能來延伸原本的訊號呢
我已有一台無線分享器,但訊號不好,要如何使用N100RE的中繼功能來延伸原本的訊號呢
 
Computer Number system
Computer Number systemComputer Number system
Computer Number system
 

Similar to Number System Conversion

FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...Arti Parab Academics
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number Systemkclove
 
2sComplementArithmetic1.ppt
2sComplementArithmetic1.ppt2sComplementArithmetic1.ppt
2sComplementArithmetic1.pptSathishkumar.V
 
2sComplementArithmetic1.ppt
2sComplementArithmetic1.ppt2sComplementArithmetic1.ppt
2sComplementArithmetic1.pptMeghadriGhosh4
 
2sComplementArithmetic1 lecture slides ppt
2sComplementArithmetic1 lecture slides ppt2sComplementArithmetic1 lecture slides ppt
2sComplementArithmetic1 lecture slides pptnashitahalwaz95
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversionRam Pratap Singh
 
Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptxHamnaKhalid25
 
Class 7 Cyber toolsComputer NUMBER SYSTEM
Class 7 Cyber toolsComputer NUMBER SYSTEMClass 7 Cyber toolsComputer NUMBER SYSTEM
Class 7 Cyber toolsComputer NUMBER SYSTEMrajdeepstudycs10
 
1663694151.pdf
1663694151.pdf1663694151.pdf
1663694151.pdfnostavimle
 
Number Systems.ppt
Number Systems.pptNumber Systems.ppt
Number Systems.pptzorogoh2
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdfAsthaChaurasia4
 
2s complement arithmetic
2s complement arithmetic2s complement arithmetic
2s complement arithmeticSanjay Saluth
 

Similar to Number System Conversion (20)

DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number System
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
 
2sComplementArithmetic1.ppt
2sComplementArithmetic1.ppt2sComplementArithmetic1.ppt
2sComplementArithmetic1.ppt
 
2sComplementArithmetic1.ppt
2sComplementArithmetic1.ppt2sComplementArithmetic1.ppt
2sComplementArithmetic1.ppt
 
2sComplementArithmetic1 lecture slides ppt
2sComplementArithmetic1 lecture slides ppt2sComplementArithmetic1 lecture slides ppt
2sComplementArithmetic1 lecture slides ppt
 
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
 
Number System
Number SystemNumber System
Number System
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptx
 
Class 7 Cyber toolsComputer NUMBER SYSTEM
Class 7 Cyber toolsComputer NUMBER SYSTEMClass 7 Cyber toolsComputer NUMBER SYSTEM
Class 7 Cyber toolsComputer NUMBER SYSTEM
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Chapter 7 rohith
Chapter 7 rohithChapter 7 rohith
Chapter 7 rohith
 
1663694151.pdf
1663694151.pdf1663694151.pdf
1663694151.pdf
 
Number Systems.ppt
Number Systems.pptNumber Systems.ppt
Number Systems.ppt
 
NUMBER SYSTEM.pptx
NUMBER SYSTEM.pptxNUMBER SYSTEM.pptx
NUMBER SYSTEM.pptx
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdf
 
2s complement arithmetic
2s complement arithmetic2s complement arithmetic
2s complement arithmetic
 

More from Faraz Ahmed

Intoduction to numpy
Intoduction to numpyIntoduction to numpy
Intoduction to numpyFaraz Ahmed
 
Data Communication & Computer Network
Data Communication & Computer Network Data Communication & Computer Network
Data Communication & Computer Network Faraz Ahmed
 
Basic CPU (Central Processing Unit)
Basic CPU (Central Processing Unit)Basic CPU (Central Processing Unit)
Basic CPU (Central Processing Unit)Faraz Ahmed
 
History and Introduction to Information and Communication Technology
History and Introduction to Information and Communication TechnologyHistory and Introduction to Information and Communication Technology
History and Introduction to Information and Communication TechnologyFaraz Ahmed
 
Computer Networking Basic
Computer Networking BasicComputer Networking Basic
Computer Networking BasicFaraz Ahmed
 
Professional Ethics
Professional EthicsProfessional Ethics
Professional EthicsFaraz Ahmed
 
Computer random access memory
Computer   random access memoryComputer   random access memory
Computer random access memoryFaraz Ahmed
 
Computer Output Devices
Computer   Output DevicesComputer   Output Devices
Computer Output DevicesFaraz Ahmed
 
Computer Motherboard
Computer   MotherboardComputer   Motherboard
Computer MotherboardFaraz Ahmed
 
Computer input devices
Computer   input devicesComputer   input devices
Computer input devicesFaraz Ahmed
 
computer components
computer componentscomputer components
computer componentsFaraz Ahmed
 
Artificial Intelligence
Artificial Intelligence  Artificial Intelligence
Artificial Intelligence Faraz Ahmed
 

More from Faraz Ahmed (14)

Intoduction to numpy
Intoduction to numpyIntoduction to numpy
Intoduction to numpy
 
Data Communication & Computer Network
Data Communication & Computer Network Data Communication & Computer Network
Data Communication & Computer Network
 
Basic CPU (Central Processing Unit)
Basic CPU (Central Processing Unit)Basic CPU (Central Processing Unit)
Basic CPU (Central Processing Unit)
 
History and Introduction to Information and Communication Technology
History and Introduction to Information and Communication TechnologyHistory and Introduction to Information and Communication Technology
History and Introduction to Information and Communication Technology
 
Computer Networking Basic
Computer Networking BasicComputer Networking Basic
Computer Networking Basic
 
Professional Ethics
Professional EthicsProfessional Ethics
Professional Ethics
 
Computer ethics
Computer ethicsComputer ethics
Computer ethics
 
Computer random access memory
Computer   random access memoryComputer   random access memory
Computer random access memory
 
Computer Output Devices
Computer   Output DevicesComputer   Output Devices
Computer Output Devices
 
Computer Motherboard
Computer   MotherboardComputer   Motherboard
Computer Motherboard
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
Computer input devices
Computer   input devicesComputer   input devices
Computer input devices
 
computer components
computer componentscomputer components
computer components
 
Artificial Intelligence
Artificial Intelligence  Artificial Intelligence
Artificial Intelligence
 

Recently uploaded

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 

Recently uploaded (20)

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
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
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

Number System Conversion

  • 1. http://www.tutorialspoint.com/computer_logical_organization/number_system_conversion.htm Copyright © tutorialspoint.com NUMBER SYSTEM CONVERSIONNUMBER SYSTEM CONVERSION There are many methods or techniques which can be used to convert numbers from one base to another. We'll demonstrate here the following − Decimal to Other Base System Other Base System to Decimal Other Base System to Non-Decimal Shortcut method − Binary to Octal Shortcut method − Octal to Binary Shortcut method − Binary to Hexadecimal Shortcut method − Hexadecimal to Binary Decimal to Other Base System Steps Step 1 − Divide the decimal number to be converted by the value of the new base. Step 2 − Get the remainder from Step 1 as the rightmost digit leastsignificantdigit of new base number. Step 3 − Divide the quotient of the previous divide by the new base. Step 4 − Record the remainder from Step 3 as the next digit totheleft of the new base number. Repeat Steps 3 and 4, getting remainders from right to left, until the quotient becomes zero in Step 3. The last remainder thus obtained will be the Most Significant Digit MSD of the new base number. Example − Decimal Number: 2910 Calculating Binary Equivalent − Step Operation Result Remainder Step 1 29 / 2 14 1 Step 2 14 / 2 7 0 Step 3 7 / 2 3 1 Step 4 3 / 2 1 1 Step 5 1 / 2 0 1 As mentioned in Steps 2 and 4, the remainders have to be arranged in the reverse order so that the first remainder becomes the Least Significant Digit LSD and the last remainder becomes the Most Significant Digit MSD. Decimal Number − 2910 = Binary Number − 111012.
  • 2. Other Base System to Decimal System Steps Step 1 − Determine the column positional value of each digit thisdependsonthepositionofthedigitandthebaseofthenumbersystem. Step 2 − Multiply the obtained column values inStep1 by the digits in the corresponding columns. Step 3 − Sum the products calculated in Step 2. The total is the equivalent value in decimal. Example Binary Number − 111012 Calculating Decimal Equivalent − Step Binary Number Decimal Number Step 1 111012 ((1 × 24) + (1 × 23) + (1 × 22) + (0 × 21) + (1 × 20))10 Step 2 111012 16 + 8 + 4 + 0 + 1 10 Step 3 111012 2910 Binary Number − 111012 = Decimal Number − 2910 Other Base System to Non-Decimal System Steps Step 1 − Convert the original number to a decimal number base10. Step 2 − Convert the decimal number so obtained to the new base number. Example Octal Number − 258 Calculating Binary Equivalent − Step 1 − Convert to Decimal Step Octal Number Decimal Number Step 1 258 ((2 × 81) + (5 × 80))10 Step 2 258 16 + 5 10 Step 3 258 2110 Octal Number − 258 = Decimal Number − 2110 Step 2 − Convert Decimal to Binary
  • 3. Step Operation Result Remainder Step 1 21 / 2 10 1 Step 2 10 / 2 5 0 Step 3 5 / 2 2 1 Step 4 2 / 2 1 0 Step 5 1 / 2 0 1 Decimal Number − 2110 = Binary Number − 101012 Octal Number − 258 = Binary Number − 101012 Shortcut method - Binary to Octal Steps Step 1 − Divide the binary digits into groups of three startingfromtheright. Step 2 − Convert each group of three binary digits to one octal digit. Example Binary Number − 101012 Calculating Octal Equivalent − Step Binary Number Octal Number Step 1 101012 010 101 Step 2 101012 28 58 Step 3 101012 258 Binary Number − 101012 = Octal Number − 258 Shortcut method - Octal to Binary Steps Step 1 − Convert each octal digit to a 3 digit binary number theoctaldigitsmaybetreatedasdecimalforthisconversion. Step 2 − Combine all the resulting binary groups of3digitseach into a single binary number. Example Octal Number − 258 Calculating Binary Equivalent − Step Octal Number Binary Number Step 1 258 210 510 Step 2 258 0102 1012
  • 4. Step 3 258 0101012 Octal Number − 258 = Binary Number − 101012 Shortcut method - Binary to Hexadecimal Steps Step 1 − Divide the binary digits into groups of four startingfromtheright. Step 2 − Convert each group of four binary digits to one hexadecimal symbol. Example Binary Number − 101012 Calculating hexadecimal Equivalent − Step Binary Number Hexadecimal Number Step 1 101012 0001 0101 Step 2 101012 110 510 Step 3 101012 1516 Binary Number − 101012 = Hexadecimal Number − 1516 Shortcut method - Hexadecimal to Binary Steps Step 1 − Convert each hexadecimal digit to a 4 digit binary number thehexadecimaldigitsmaybetreatedasdecimalforthisconversion. Step 2 − Combine all the resulting binary groups of4digitseach into a single binary number. Example Hexadecimal Number − 1516 Calculating Binary Equivalent − Step Hexadecimal Number Binary Number Step 1 1516 110 510 Step 2 1516 00012 01012 Step 3 1516 000101012 Hexadecimal Number − 1516 = Binary Number − 101012 Loading [MathJax]/jax/output/HTML-CSS/jax.js