SlideShare a Scribd company logo
Outcome of this chapter
 Understand the base value for different
numbering system.
 Different numbering system basic difference.
 How the each of the four numbering system
works?
 How to convert one numbering system to
other.
 Understand the binary arithmetic operations.
2
Understanding the base
 A value of each digit in a number can be determined
using
 A digit
 A position of the digit in the number
 The base of the number system
 Total number digit available in the number system
 For instance, let’s assume 278 is a base 10 number then
how do we get the value 278?
27810 = (2 x 102 )+(7 x 101 )+(8 x 100 )
3
Number system
 A mathematical notation for representing numbers of
a given set, using digits or other symbols
 There are four types of number system
1. Binary number
 Base 2 and digit 0 and 1
2. Decimal number
 Base 10, digit (0,1,2,3,4,5,6,7,8,9)
3. Octal number
 Base 8, digit (0,1,2,3,4,5,6,7)
4. Hexadecimal number
 Base 16, digit (0,1,2,3,4,5,6,7,8,9 and A to F where A,B,C,D,E,F)
4
Decimal number
 The base-10 number system is known as the decimal
system
 Range: 0 to 9
 A decimal point to separate whole numbers from
decimal fraction
 For instance, 4210, and 34510.
5
Binary number
 A base-2 number system
 Consists either 0 and 1
 For instance, 101102 and 11112
6
Octal number
 Base eight numbers meaning eight digits are used to
represent all the values
Octal 0 1 2 3 4 5 6 7
Binary 000 001 010 011 100 101 110 111
Decimal 0 1 2 3 4 5 6 7
7
Hexadecimal Number
 Numbering system uses sixteen digits to represent
numbers
8
Conversion
1. Decimal to other base system
i. Decimal to Binary
ii. Decimal to Octal
iii. Decimal to Hexadecimal
9
Conversion (2)
2. Other base system to decimal
a. Binary to decimal
b. Octal to decimal
c. Hexadecimal to decimal
3. Binary to Octal
4. Octal to binary
5. Binary to hexadecimal
6. Hexadecimal to binary
10
Decimal to any number and vice versa
1. Divide the decimal number by the base of the
number you want to convert and take it’s remainder
2. The process is repeated until it produces the result of
0
3. The resulting number is obtained by taking the
remainder from the bottom to the top
For doing vice versa, following formula to be considered:
N = anbn + an-1bn-1 + ….. + a1b1 + a0b0
Where: N: decimal equivalent, b: base, a: i-th digit
11
Binary to Octal and Octal to Binary
1. At first make group of three digits starting from
right.
2. If in last the digits can’t be rounded up to three add 0
the left.
3. Replace each group accordingly with the help of the
table.
4. Sequence the numbers as the groups are created.
101112 = 278
12
Octal to Binary
1. Replace each digit with it’s equivalent three digits
2. After joining the numbers if any 0s are left at the
leftmost erase them
3. For instance, 2 is replaced by 010 and 7 is replaced by
111
 Thus, the number becomes 010111 and removing the
leftmost zero as it bears no value the answer become
101112
13
Binary to Hexadecimal and
Hexadecimal to Binary
1. Replace each digit with it’s equivalent four digits
2. After joining the numbers if any 0s are left at the
leftmost erase them
For instance, 10011112 = 4F16 and 4F16 = 010011112
14
Binary arithmetic
 Binary addition
 As like decimal addition
 Add two numbers according to the column and forward
the carry to the next column
 Binary subtraction
- Borrow 1 from the next more significant bit when 0-1=1
15
Binary addition
 Basic rules for adding two binary numbers
 0+0 = 0
 0+1 = 1
 1+0 = 1
 1+1 = 0, and carry 1 to the next more significant bit
16
Binary subtraction
 Basic rules for binary subtraction as follows
 0 - 0 = 0
 0-1 = 1, and borrow 1 from next more significant bit
 1-0 = 1
 1-1 = 0
17

More Related Content

What's hot

Computer Number system
Computer Number systemComputer Number system
Computer Number system
Anil Kumar Prajapati
 
Number system
Number systemNumber system
Number system
Palash Sachan
 
number system
number systemnumber system
number system
virly dwe
 
Natural and Whole Numbers
Natural and Whole NumbersNatural and Whole Numbers
Natural and Whole Numbers
Neha Verma
 
Number system
Number systemNumber system
Number system
ankush9927
 
Number system
Number systemNumber system
Number system
Suraj Bora
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
Akhilesh Maithani
 
Number System
Number SystemNumber System
Number System
Web Designer
 
Number system
Number systemNumber system
Number system
Divya Shrivastava
 
Sig figs.ppt
Sig figs.pptSig figs.ppt
Sig figs.ppt
Alissa Jordan
 
Number system
Number systemNumber system
Number system
Raman Wankhede
 
Octal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering SystemsOctal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering Systems
Leo Hernandez
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
Laguna State Polytechnic University
 
01.number systems
01.number systems01.number systems
01.number systems
Sripati Mahapatra
 
Binary computing
Binary computingBinary computing
Binary computing
samina khan
 
Introduction to digital electornics
Introduction to digital electornicsIntroduction to digital electornics
Introduction to digital electornics
harman kaur
 
Number Systems
Number SystemsNumber Systems
Number Systems
Reggie Niccolo Santos
 
Binary ppt tr
Binary ppt trBinary ppt tr
Binary ppt tr
tomrussso
 
01.Number Systems
01.Number Systems01.Number Systems
01.Number Systems
Amit Chandra
 
Chapter 3.2
Chapter 3.2Chapter 3.2
Chapter 3.2
nglaze10
 

What's hot (20)

Computer Number system
Computer Number systemComputer Number system
Computer Number system
 
Number system
Number systemNumber system
Number system
 
number system
number systemnumber system
number system
 
Natural and Whole Numbers
Natural and Whole NumbersNatural and Whole Numbers
Natural and Whole Numbers
 
Number system
Number systemNumber system
Number system
 
Number system
Number systemNumber system
Number system
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
 
Number System
Number SystemNumber System
Number System
 
Number system
Number systemNumber system
Number system
 
Sig figs.ppt
Sig figs.pptSig figs.ppt
Sig figs.ppt
 
Number system
Number systemNumber system
Number system
 
Octal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering SystemsOctal and Hexadecimal Numbering Systems
Octal and Hexadecimal Numbering Systems
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
 
01.number systems
01.number systems01.number systems
01.number systems
 
Binary computing
Binary computingBinary computing
Binary computing
 
Introduction to digital electornics
Introduction to digital electornicsIntroduction to digital electornics
Introduction to digital electornics
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
Binary ppt tr
Binary ppt trBinary ppt tr
Binary ppt tr
 
01.Number Systems
01.Number Systems01.Number Systems
01.Number Systems
 
Chapter 3.2
Chapter 3.2Chapter 3.2
Chapter 3.2
 

Similar to Ch 4

Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
Lovely Professional University
 
NUMBER SYSTEM.pptx
NUMBER SYSTEM.pptxNUMBER SYSTEM.pptx
NUMBER SYSTEM.pptx
AnaMarieFrane
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdf
AsthaChaurasia4
 
Number system
Number systemNumber system
Number system
SAEED ULLAH JAN
 
NUMBER SYSTEM.pptx
NUMBER  SYSTEM.pptxNUMBER  SYSTEM.pptx
NUMBER SYSTEM.pptx
AsifRahaman16
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
Ammar_n
 
Grade5(Test 2).pptx
Grade5(Test 2).pptxGrade5(Test 2).pptx
Grade5(Test 2).pptx
MjMj96
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number System
kclove
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
sohag sikder
 
Number bases
Number basesNumber bases
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
ODAATUBE1
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
Susantha Herath
 
module 3,Boolean algebra and logic circuits .pptx
module 3,Boolean algebra and logic circuits .pptxmodule 3,Boolean algebra and logic circuits .pptx
module 3,Boolean algebra and logic circuits .pptx
keemjupiter
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
Aman anand kumar
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
MamataAnilgod
 
Number System
Number SystemNumber System
Number System
Meenakshi Paul
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
Ram Pratap Singh
 
Number system
Number system Number system
Number system
Khinda Saab
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number system
ISMT College
 
binary-numbers-7-12-2011.pdf
binary-numbers-7-12-2011.pdfbinary-numbers-7-12-2011.pdf
binary-numbers-7-12-2011.pdf
kndnewguade
 

Similar to Ch 4 (20)

Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
NUMBER SYSTEM.pptx
NUMBER SYSTEM.pptxNUMBER SYSTEM.pptx
NUMBER SYSTEM.pptx
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdf
 
Number system
Number systemNumber system
Number system
 
NUMBER SYSTEM.pptx
NUMBER  SYSTEM.pptxNUMBER  SYSTEM.pptx
NUMBER SYSTEM.pptx
 
Number system by ammar nawab
Number system by ammar nawabNumber system by ammar nawab
Number system by ammar nawab
 
Grade5(Test 2).pptx
Grade5(Test 2).pptxGrade5(Test 2).pptx
Grade5(Test 2).pptx
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number System
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 
Number bases
Number basesNumber bases
Number bases
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
 
module 3,Boolean algebra and logic circuits .pptx
module 3,Boolean algebra and logic circuits .pptxmodule 3,Boolean algebra and logic circuits .pptx
module 3,Boolean algebra and logic circuits .pptx
 
Number system computer fundamental
 Number  system computer fundamental  Number  system computer fundamental
Number system computer fundamental
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
Number System
Number SystemNumber System
Number System
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
 
Number system
Number system Number system
Number system
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number system
 
binary-numbers-7-12-2011.pdf
binary-numbers-7-12-2011.pdfbinary-numbers-7-12-2011.pdf
binary-numbers-7-12-2011.pdf
 

Recently uploaded

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
melliereed
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
National Information Standards Organization (NISO)
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Vivekanand Anglo Vedic Academy
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 

Recently uploaded (20)

Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 

Ch 4

  • 1.
  • 2. Outcome of this chapter  Understand the base value for different numbering system.  Different numbering system basic difference.  How the each of the four numbering system works?  How to convert one numbering system to other.  Understand the binary arithmetic operations. 2
  • 3. Understanding the base  A value of each digit in a number can be determined using  A digit  A position of the digit in the number  The base of the number system  Total number digit available in the number system  For instance, let’s assume 278 is a base 10 number then how do we get the value 278? 27810 = (2 x 102 )+(7 x 101 )+(8 x 100 ) 3
  • 4. Number system  A mathematical notation for representing numbers of a given set, using digits or other symbols  There are four types of number system 1. Binary number  Base 2 and digit 0 and 1 2. Decimal number  Base 10, digit (0,1,2,3,4,5,6,7,8,9) 3. Octal number  Base 8, digit (0,1,2,3,4,5,6,7) 4. Hexadecimal number  Base 16, digit (0,1,2,3,4,5,6,7,8,9 and A to F where A,B,C,D,E,F) 4
  • 5. Decimal number  The base-10 number system is known as the decimal system  Range: 0 to 9  A decimal point to separate whole numbers from decimal fraction  For instance, 4210, and 34510. 5
  • 6. Binary number  A base-2 number system  Consists either 0 and 1  For instance, 101102 and 11112 6
  • 7. Octal number  Base eight numbers meaning eight digits are used to represent all the values Octal 0 1 2 3 4 5 6 7 Binary 000 001 010 011 100 101 110 111 Decimal 0 1 2 3 4 5 6 7 7
  • 8. Hexadecimal Number  Numbering system uses sixteen digits to represent numbers 8
  • 9. Conversion 1. Decimal to other base system i. Decimal to Binary ii. Decimal to Octal iii. Decimal to Hexadecimal 9
  • 10. Conversion (2) 2. Other base system to decimal a. Binary to decimal b. Octal to decimal c. Hexadecimal to decimal 3. Binary to Octal 4. Octal to binary 5. Binary to hexadecimal 6. Hexadecimal to binary 10
  • 11. Decimal to any number and vice versa 1. Divide the decimal number by the base of the number you want to convert and take it’s remainder 2. The process is repeated until it produces the result of 0 3. The resulting number is obtained by taking the remainder from the bottom to the top For doing vice versa, following formula to be considered: N = anbn + an-1bn-1 + ….. + a1b1 + a0b0 Where: N: decimal equivalent, b: base, a: i-th digit 11
  • 12. Binary to Octal and Octal to Binary 1. At first make group of three digits starting from right. 2. If in last the digits can’t be rounded up to three add 0 the left. 3. Replace each group accordingly with the help of the table. 4. Sequence the numbers as the groups are created. 101112 = 278 12
  • 13. Octal to Binary 1. Replace each digit with it’s equivalent three digits 2. After joining the numbers if any 0s are left at the leftmost erase them 3. For instance, 2 is replaced by 010 and 7 is replaced by 111  Thus, the number becomes 010111 and removing the leftmost zero as it bears no value the answer become 101112 13
  • 14. Binary to Hexadecimal and Hexadecimal to Binary 1. Replace each digit with it’s equivalent four digits 2. After joining the numbers if any 0s are left at the leftmost erase them For instance, 10011112 = 4F16 and 4F16 = 010011112 14
  • 15. Binary arithmetic  Binary addition  As like decimal addition  Add two numbers according to the column and forward the carry to the next column  Binary subtraction - Borrow 1 from the next more significant bit when 0-1=1 15
  • 16. Binary addition  Basic rules for adding two binary numbers  0+0 = 0  0+1 = 1  1+0 = 1  1+1 = 0, and carry 1 to the next more significant bit 16
  • 17. Binary subtraction  Basic rules for binary subtraction as follows  0 - 0 = 0  0-1 = 1, and borrow 1 from next more significant bit  1-0 = 1  1-1 = 0 17