SlideShare a Scribd company logo
1 of 17
NUMBER BASE SYSTEM
 BINARY AND DECIMAL
 OCTAL
 HEXADECIMAL
THE BINARY SYSTEM
The binary system, also called base two, has just two states usually called ON
and OFF or 0 and 1. The binary system has just two symbols, 1 and 0. when
dealing with number bases, it is important to put the base of the Number
being used. If no subscript is being used, then it is assumed that base 10 is
being applied.
What is the Decimal Number System?
This number system is widely used in computer applications. It is also
called the base-10 number system which consists of 10 digits, such as,
0,1,2,3,4,5,6,7,8,9. Each digit in the decimal system has a position and every
digit is ten times more significant than the previous digit. Suppose, 25 is a
decimal number, then 2 is ten times more than 5. Some examples of decimal
numbers are:-
(12)10, (345)10, (119)10, (200)10, (313.9)10
Each value in this number system has the place value of power 10. It
means the digit at the tens place is ten times greater than the digit at
the unit place. Let us see some more examples:
(92)10 = 9×101+2×100
(200)10 = 2×102+0x101+0x100
The decimal numbers which have digits present on the right side of the decimal
(.) denote each digit with decreasing power of 10. Some examples are:
(30.2)10= 3×101+0x100+2×10-1
(212.367)10 = 2×102+1×101+2×100+3×10-1+6×10-2+7×10-3
CONVERSION BETWEEN DECIMAL AND
BINARY SYSTEM
CONVERSION OF DECIMAL TO BINARY
Convert 58 to binary
2 58
2 29 remainder 0 58 ÷ 2 = 29 remainder 0
2 14 remainder 1 29 ÷ 2 = 14 remainder 1
2 7 remainder 0 14 ÷ 2 = 7 remainder 0
2 3 remainder 1 7 ÷ 2 = 3 remainder 1
2 1 remainder 1 3 ÷ 2 = 1 remainder 1
0 remainder 1 1 ÷ 0 = 0 remainder 1
Therefore 58= 1110102
Example 2
Convert 23 to binary
2 23
2 11 remainder 1 23 ÷ 2 = 11 remainder 1
2 5 remainder 1 11÷ 2 = 5 remainder 1
2 2 remainder 1 5 ÷ 2 = 2 remainder 1
2 1 remainder 0 2 ÷ 2 = 1 remainder 0
2 0 remainder 1 1 ÷ 2 = 0 remainder 1
Therefore 23 = 101112
CONVERSION OF BINARY TO DECIMAL
In this conversion, a number with base 2 is converted into number with base 10. Each
binary digit here is multiplied by decreasing power of 2.
Example:
Convert (11011)2 to decimal number.
We need to multiply each binary digit with the decreasing power of 2. That is;
4 3 2 1 0
1 1 0 1 12
(1×24) + (1×23) + (0x22) + (1×21) + (1×20)
= 16 + 8 + 0 + 2 + 1
= 27
Therefore, (11011)2 = (27)10
Example 2:
Convert (110011)2 to decimal number.
We need to multiply each binary digit with the decreasing power of 2. That is;
5 4 3 2 1 0
1 1 0 0 1 12
= (1×25) + (1×24) + (0×23) + (0x22) + (1×21) + (1×20)
= 32 + 16 + 0 + 0 + 2 + 1
= 5110
ADDITION OF BINARY
There are four rules of binary addition, which are;
 0 + 0 = 0
 0 + 1 = 1
 1 + 0 = 1
 1 + 1 = 10 (write 0, carry 1 over)
EXAMPLE 1:
1 1 1 0 1 0
+ 1 1 0 1 1
1 0 1 0 1 0 12
EXAMPLE 2:
1 0 1
+ 1 0 1
1 0 1 02
SUBTRACTION OF BINARY
There are four rules of binary subtraction, which are;
 0 - 0 = 0
 0 - 1 = 1 (borrow 1 from previous column)
 1 - 0 = 1
 1 - 1 = 0
EXAMPLE 1:
1 1 1 0 1 0
- 1 0 1 0 1
1 0 0 1 0 12
EXAMPLE 2:
1 0 1 0 0
- 1 1 1 1
0 1 0 1
MULTIPLICATION OF BINARY
Multiplication in Binary is carried out the same way as it is in Decimal.
Example:
Evaluate 11010 x 1011
1 1 0 1 0
x 1 0 1 1
1 1 0 1 0
1 1 0 1 0
0 0 0 0 0
1 1 0 1 0 _
____ 1 0 0_0_ 1_1_1 1_0___
OTHER NUMBER BASES
OCTAL
Octal is base 8. in octal, we have eight digits: 0,1,2,3,4,5,6,7.
Conversions in octal base is carried out the same way as the conversion in
decimal and binary.
Example:
Convert 40 to Octal
8 40
8 5 r 0 40÷8 = 5 remainder 0
8 0 r 5 5÷8 = 0 remainder 5
Answer= 508
Octal to decimal
Convert 4268 to decimal
2 1 0
4 2 68
= (4x82) + (2×81) + (6×80)
= 256 + 16 + 6
= 27810
ADDITION OF OCTAL
Note: when the number crosses 7, it overturns then keep 1 to the previous
column
Example:
2 4 58
+ 1 68
2 6 38
2 3 68
+ 1 2 78
3 6 58
SUBTRACTION OF OCTAL
Example:
1 4 68
- 5 78
6 78
NOTE:
7 is greater than 6
 Borrow 1 which is 8 from the previous column
 Add 8 to 6 which is 14
 The same method is being repeated
ASSIGNMENT
Convert the following binary numbers to decimal number
 1012
 10112
 101012
Convert the following base ten numbers to binary number
 510
 7810
HEXADECIMAL
Understanding Number Bases

More Related Content

What's hot (20)

Number system
Number systemNumber system
Number system
 
11 octal number system
11   octal number system11   octal number system
11 octal number system
 
Introduction to the Binary Number System
Introduction to the Binary Number SystemIntroduction to the Binary Number System
Introduction to the Binary Number System
 
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
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
 
Number system
Number systemNumber system
Number system
 
Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1
 
PPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMPPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEM
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
Number System
Number SystemNumber System
Number System
 
Chapter iii: Number System
Chapter iii: Number SystemChapter iii: Number System
Chapter iii: Number System
 
Number system....
Number system....Number system....
Number system....
 
binary number system
 binary number system binary number system
binary number system
 
Binary system ppt
Binary system pptBinary system ppt
Binary system ppt
 
Representation Of Numbers and Characters
Representation Of Numbers and CharactersRepresentation Of Numbers and Characters
Representation Of Numbers and Characters
 
Number System
Number SystemNumber System
Number System
 
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 presentation
Binary presentationBinary presentation
Binary presentation
 

Similar to Understanding Number Bases

Lesson plan on data representation
Lesson plan on data representationLesson plan on data representation
Lesson plan on data representationPooja Tripathi
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Frankie Jones
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1Deepak John
 
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxchapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxSurendra Loya
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpuWan Afirah
 
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in PharmacyVedika Narvekar
 
Ncp computer appls num sys2 pramod
Ncp computer appls  num sys2 pramodNcp computer appls  num sys2 pramod
Ncp computer appls num sys2 pramodNCP
 
Chapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbersChapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbersMohammad Bashartullah
 
Binary octal
Binary octalBinary octal
Binary octaldrdipo4
 
Chapter 6 base_number
Chapter 6 base_numberChapter 6 base_number
Chapter 6 base_numberNazrul Shah
 
Logic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and CodesLogic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and CodesGouda Mando
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxMamataAnilgod
 
digital-electronics.pptx
digital-electronics.pptxdigital-electronics.pptx
digital-electronics.pptxsulekhasaxena2
 
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
 
Data representation
Data representationData representation
Data representationChew Hoong
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptxGobinathAECEJRF1101
 

Similar to Understanding Number Bases (20)

Lesson plan on data representation
Lesson plan on data representationLesson plan on data representation
Lesson plan on data representation
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)
 
Module 1 number systems and code1
Module 1  number systems and code1Module 1  number systems and code1
Module 1 number systems and code1
 
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxchapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
 
2.1 data represent on cpu
2.1 data represent on cpu2.1 data represent on cpu
2.1 data represent on cpu
 
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
 
Ncp computer appls num sys2 pramod
Ncp computer appls  num sys2 pramodNcp computer appls  num sys2 pramod
Ncp computer appls num sys2 pramod
 
Chapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbersChapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbers
 
Binary octal
Binary octalBinary octal
Binary octal
 
Chapter 6 base_number
Chapter 6 base_numberChapter 6 base_number
Chapter 6 base_number
 
Logic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and CodesLogic Design - Chapter 1: Number Systems and Codes
Logic Design - Chapter 1: Number Systems and Codes
 
computer Unit 2
computer Unit 2computer Unit 2
computer Unit 2
 
DLD-Introduction.pptx
DLD-Introduction.pptxDLD-Introduction.pptx
DLD-Introduction.pptx
 
DCF QNA edited
DCF QNA editedDCF QNA edited
DCF QNA edited
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
digital-electronics.pptx
digital-electronics.pptxdigital-electronics.pptx
digital-electronics.pptx
 
Chapter 1
Chapter   1Chapter   1
Chapter 1
 
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...
 
Data representation
Data representationData representation
Data representation
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 

Recently uploaded

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
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
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
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
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
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
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
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🔝
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
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
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

Understanding Number Bases

  • 1. NUMBER BASE SYSTEM  BINARY AND DECIMAL  OCTAL  HEXADECIMAL
  • 2. THE BINARY SYSTEM The binary system, also called base two, has just two states usually called ON and OFF or 0 and 1. The binary system has just two symbols, 1 and 0. when dealing with number bases, it is important to put the base of the Number being used. If no subscript is being used, then it is assumed that base 10 is being applied. What is the Decimal Number System? This number system is widely used in computer applications. It is also called the base-10 number system which consists of 10 digits, such as, 0,1,2,3,4,5,6,7,8,9. Each digit in the decimal system has a position and every digit is ten times more significant than the previous digit. Suppose, 25 is a decimal number, then 2 is ten times more than 5. Some examples of decimal numbers are:- (12)10, (345)10, (119)10, (200)10, (313.9)10
  • 3. Each value in this number system has the place value of power 10. It means the digit at the tens place is ten times greater than the digit at the unit place. Let us see some more examples: (92)10 = 9×101+2×100 (200)10 = 2×102+0x101+0x100 The decimal numbers which have digits present on the right side of the decimal (.) denote each digit with decreasing power of 10. Some examples are: (30.2)10= 3×101+0x100+2×10-1 (212.367)10 = 2×102+1×101+2×100+3×10-1+6×10-2+7×10-3
  • 4. CONVERSION BETWEEN DECIMAL AND BINARY SYSTEM CONVERSION OF DECIMAL TO BINARY Convert 58 to binary 2 58 2 29 remainder 0 58 ÷ 2 = 29 remainder 0 2 14 remainder 1 29 ÷ 2 = 14 remainder 1 2 7 remainder 0 14 ÷ 2 = 7 remainder 0 2 3 remainder 1 7 ÷ 2 = 3 remainder 1 2 1 remainder 1 3 ÷ 2 = 1 remainder 1 0 remainder 1 1 ÷ 0 = 0 remainder 1 Therefore 58= 1110102
  • 5. Example 2 Convert 23 to binary 2 23 2 11 remainder 1 23 ÷ 2 = 11 remainder 1 2 5 remainder 1 11÷ 2 = 5 remainder 1 2 2 remainder 1 5 ÷ 2 = 2 remainder 1 2 1 remainder 0 2 ÷ 2 = 1 remainder 0 2 0 remainder 1 1 ÷ 2 = 0 remainder 1 Therefore 23 = 101112
  • 6. CONVERSION OF BINARY TO DECIMAL In this conversion, a number with base 2 is converted into number with base 10. Each binary digit here is multiplied by decreasing power of 2. Example: Convert (11011)2 to decimal number. We need to multiply each binary digit with the decreasing power of 2. That is; 4 3 2 1 0 1 1 0 1 12 (1×24) + (1×23) + (0x22) + (1×21) + (1×20) = 16 + 8 + 0 + 2 + 1 = 27 Therefore, (11011)2 = (27)10
  • 7. Example 2: Convert (110011)2 to decimal number. We need to multiply each binary digit with the decreasing power of 2. That is; 5 4 3 2 1 0 1 1 0 0 1 12 = (1×25) + (1×24) + (0×23) + (0x22) + (1×21) + (1×20) = 32 + 16 + 0 + 0 + 2 + 1 = 5110
  • 8. ADDITION OF BINARY There are four rules of binary addition, which are;  0 + 0 = 0  0 + 1 = 1  1 + 0 = 1  1 + 1 = 10 (write 0, carry 1 over) EXAMPLE 1: 1 1 1 0 1 0 + 1 1 0 1 1 1 0 1 0 1 0 12 EXAMPLE 2: 1 0 1 + 1 0 1 1 0 1 02
  • 9. SUBTRACTION OF BINARY There are four rules of binary subtraction, which are;  0 - 0 = 0  0 - 1 = 1 (borrow 1 from previous column)  1 - 0 = 1  1 - 1 = 0 EXAMPLE 1: 1 1 1 0 1 0 - 1 0 1 0 1 1 0 0 1 0 12 EXAMPLE 2: 1 0 1 0 0 - 1 1 1 1 0 1 0 1
  • 10. MULTIPLICATION OF BINARY Multiplication in Binary is carried out the same way as it is in Decimal. Example: Evaluate 11010 x 1011 1 1 0 1 0 x 1 0 1 1 1 1 0 1 0 1 1 0 1 0 0 0 0 0 0 1 1 0 1 0 _ ____ 1 0 0_0_ 1_1_1 1_0___
  • 11. OTHER NUMBER BASES OCTAL Octal is base 8. in octal, we have eight digits: 0,1,2,3,4,5,6,7. Conversions in octal base is carried out the same way as the conversion in decimal and binary. Example: Convert 40 to Octal 8 40 8 5 r 0 40÷8 = 5 remainder 0 8 0 r 5 5÷8 = 0 remainder 5 Answer= 508
  • 12. Octal to decimal Convert 4268 to decimal 2 1 0 4 2 68 = (4x82) + (2×81) + (6×80) = 256 + 16 + 6 = 27810
  • 13. ADDITION OF OCTAL Note: when the number crosses 7, it overturns then keep 1 to the previous column Example: 2 4 58 + 1 68 2 6 38 2 3 68 + 1 2 78 3 6 58
  • 14. SUBTRACTION OF OCTAL Example: 1 4 68 - 5 78 6 78 NOTE: 7 is greater than 6  Borrow 1 which is 8 from the previous column  Add 8 to 6 which is 14  The same method is being repeated
  • 15. ASSIGNMENT Convert the following binary numbers to decimal number  1012  10112  101012 Convert the following base ten numbers to binary number  510  7810