SlideShare a Scribd company logo
Lecture no : 11
Introduction to Computer/ Computer
Education
Mr. Muhammad Moazzam
MPhil Public Health
BSc BioMedical
University of the Lahore
Numbering System
Base Conversion
Number systems
• Decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
• Binary – 0, 1
• Octal – 0, 1, 2, 3, 4, 5, 6, 7
• Hexadecimal system – 0, 1, 2, 3, 4, 5, 6, 7, 8,
9, A, B, C, D, E, F
• ASCII
Why different number systems?
• Binary number result in quite a long string of
0s and 1s
• Easier for the computer to interpret input
from the user
Base Conversion
• In daily life, we use decimal (base 10) number
system
• Computer can only read in 0 and 1
– Number system being used inside a computer is
binary (base 2)
– Octal (base 8) and hexadecimal (base 16) are used
in programming for convenience
Quantities/Counting (1 of 2)
Decimal Binary Octal
Hexa-
decimal
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
Quantities/Counting (2 of 2)
Decimal Binary Octal
Hexa-
decimal
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
Conversion Among Bases
• The possibilities:
Hexadecimal
Decimal Octal
Binary
Binary and decimal system
• Binary to decimal
– X^27 + X^26+ X^25+X ^ 24 + X ^ 23+ X ^ 22+ X ^ 21 + X ^20
• Decimal to binary
– Keep dividing the number by two and keep track
of the remainders.
– Arrange the remainders (0 or 1) from the least
significant (right) to most significant (left) digits
Octal and Hexadecimal system
• Binary to Octal (8 = 23)
– Every 3 binary digit equivalent to one octal digit
• Binary to Hexadecimal (16 = 24)
– Every 4 binary digit equivalent to one hexadecimal digit
• Octal to binary
– Every one octal digit equivalent to 3 binary digit
• Hexadecimal to binary
– Every one hexadecimal digit equivalent to 4 binary digits
Base Conversion
• How to convert the decimal number to other
number system
– e.g. convert 1810 in binary form
2 |18 ----0
2 |09 ----1
2 |04 ----0
2 |02 ----0
1
– 1810 = 100102
Exercise
1-Convert 10001000(2) to Decimal.
2-Convert 1000111.001(2) to Decimal.
3-Convert 6767(10) to Binary.
4-Convert 186(10) to Hexadecimal.
5-Convert 5BD(16) to Decimal.
6-Convert 16AC(16) to Binary.
7-Convert 10001110(2) to Hexadecimal.
8-Convert 196(10) to Octal.
Exercise
9-Convert 0216(8) to decimal.
10-Convert 0216(8) to binary.
11-726(8) to decimal.
12-27FB16 to octal.
13-(104)10 to binary
14-(AF)16 to decimal.
Base Conversion
For example:
62 = 111110 = 76 = 3E
decimal binary octal hexadecimal
1 For Decimal:
62 = 6x101 + 2x100
2 For Binary:
111110 = 1x25 + 1x24 + 1x23 + 1x22 + 1x21 + 0x20
3 For Octal:
76 = 7x81+ 6x80
4 For Hexadecimal:
3E = 3x161 + 14x160
• Since for hexadecimal system, each digit contains number from 1 to
15, thus we use A, B, C, D, E and F to represent 10, 11, 12, 13, 14
and 15.
Numbering System Base Conversion

More Related Content

What's hot

Number system
Number systemNumber system
Number system
Suraj Bora
 
1s and 2s complement
1s and 2s complement1s and 2s complement
1s and 2s complement
Then Murugeshwari
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
Meenakshi Paul
 
Number systems
Number systemsNumber systems
Number systems
pyingkodi maran
 
PPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMPPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEM
Rishabh Kanth
 
Binary to Decimal Conversion
Binary to Decimal ConversionBinary to Decimal Conversion
Binary to Decimal Conversion
Neelanjan Bhattacharyya
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
Akhilesh Maithani
 
Number system
Number systemNumber system
Number systemkashee99
 
Insertion in singly linked list
Insertion in singly linked listInsertion in singly linked list
Insertion in singly linked list
Keval Bhogayata
 
Decimal number system
Decimal number systemDecimal number system
Decimal number system
Nisarg Amin
 
Hexadecimal numbers
Hexadecimal  numbersHexadecimal  numbers
Hexadecimal numbersatcnerd
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
missstevenson01
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
Janki Shah
 
Binary number ppt
Binary number pptBinary number ppt
Binary number ppt
Ankit Gupta
 
Number system
Number system Number system
Number system
Anirban Saha Anik
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
Laguna State Polytechnic University
 
Representation Of Numbers and Characters
Representation Of Numbers and CharactersRepresentation Of Numbers and Characters
Representation Of Numbers and Characters
Shaikh Kamrul Islam (Konok kamrul)
 
Circular queue
Circular queueCircular queue
Complements
ComplementsComplements
Complements
Sudheesh S Madhav
 

What's hot (20)

Number system
Number systemNumber system
Number system
 
1s and 2s complement
1s and 2s complement1s and 2s complement
1s and 2s complement
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Number systems
Number systemsNumber systems
Number systems
 
PPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEMPPT ON NUMBER SYSTEM
PPT ON NUMBER SYSTEM
 
Binary to Decimal Conversion
Binary to Decimal ConversionBinary to Decimal Conversion
Binary to Decimal Conversion
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
 
Number system
Number systemNumber system
Number system
 
Insertion in singly linked list
Insertion in singly linked listInsertion in singly linked list
Insertion in singly linked list
 
Decimal number system
Decimal number systemDecimal number system
Decimal number system
 
Hexadecimal numbers
Hexadecimal  numbersHexadecimal  numbers
Hexadecimal numbers
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
Number system in Digital Electronics
Number system in Digital ElectronicsNumber system in Digital Electronics
Number system in Digital Electronics
 
Binary number ppt
Binary number pptBinary number ppt
Binary number ppt
 
Number system
Number system Number system
Number system
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
 
Representation Of Numbers and Characters
Representation Of Numbers and CharactersRepresentation Of Numbers and Characters
Representation Of Numbers and Characters
 
Circular queue
Circular queueCircular queue
Circular queue
 
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
 
Complements
ComplementsComplements
Complements
 

Similar to Numbering System Base Conversion

Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptx
HamnaKhalid25
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx
LibanMohamed26
 
Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionLecture-2(2): Number System & Conversion
Lecture-2(2): Number System & Conversion
Mubashir Ali
 
Number-Systems presentation of the mathematics
Number-Systems presentation of the mathematicsNumber-Systems presentation of the mathematics
Number-Systems presentation of the mathematics
shivas379526
 
Number system...this ppt specially help BTech 2nd year ECE department
Number system...this ppt specially help BTech 2nd year ECE departmentNumber system...this ppt specially help BTech 2nd year ECE department
Number system...this ppt specially help BTech 2nd year ECE department
AnupamBiswas67
 
Intro to IT Skills Lec 5 - English Department.pptx
Intro to IT Skills Lec 5 - English Department.pptxIntro to IT Skills Lec 5 - English Department.pptx
Intro to IT Skills Lec 5 - English Department.pptx
must322322
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
Lovely Professional University
 
Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02
muhammadsarab
 
Digital logic -Number System Representation.pptx
Digital logic -Number System Representation.pptxDigital logic -Number System Representation.pptx
Digital logic -Number System Representation.pptx
ssuserf8309e1
 
Number system
Number systemNumber system
Number system
Palash Sachan
 
Numbersystemcont
NumbersystemcontNumbersystemcont
Numbersystemcont
Sajib
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.ppt
AshishChandrakar12
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
4NM21IS132SAISHARATH
 
Numbering system data representation
Numbering system data representationNumbering system data representation
Numbering system data representation
satonaka3
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
Wollo UNiversity
 
Binary computing
Binary computingBinary computing
Binary computing
samina khan
 
Computer Number system
Computer Number systemComputer Number system
Computer Number system
Anil Kumar Prajapati
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdf
AsthaChaurasia4
 
Number System
Number SystemNumber System
Number System
Zahid Rajeel
 

Similar to Numbering System Base Conversion (20)

Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptx
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx
 
Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionLecture-2(2): Number System & Conversion
Lecture-2(2): Number System & Conversion
 
Number-Systems presentation of the mathematics
Number-Systems presentation of the mathematicsNumber-Systems presentation of the mathematics
Number-Systems presentation of the mathematics
 
Number system...this ppt specially help BTech 2nd year ECE department
Number system...this ppt specially help BTech 2nd year ECE departmentNumber system...this ppt specially help BTech 2nd year ECE department
Number system...this ppt specially help BTech 2nd year ECE department
 
Intro to IT Skills Lec 5 - English Department.pptx
Intro to IT Skills Lec 5 - English Department.pptxIntro to IT Skills Lec 5 - English Department.pptx
Intro to IT Skills Lec 5 - English Department.pptx
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02
 
Digital logic -Number System Representation.pptx
Digital logic -Number System Representation.pptxDigital logic -Number System Representation.pptx
Digital logic -Number System Representation.pptx
 
Number system
Number systemNumber system
Number system
 
Numbersystemcont
NumbersystemcontNumbersystemcont
Numbersystemcont
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.ppt
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
Numbering system data representation
Numbering system data representationNumbering system data representation
Numbering system data representation
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Binary computing
Binary computingBinary computing
Binary computing
 
1. basic theories of information
1. basic theories of information1. basic theories of information
1. basic theories of information
 
Computer Number system
Computer Number systemComputer Number system
Computer Number system
 
numbersystem-211022083557.pdf
numbersystem-211022083557.pdfnumbersystem-211022083557.pdf
numbersystem-211022083557.pdf
 
Number System
Number SystemNumber System
Number System
 

More from The University of Lahore

BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...
The University of Lahore
 
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...
BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...
The University of Lahore
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
The University of Lahore
 
Storage Devices
Storage DevicesStorage Devices
Storage Devices
The University of Lahore
 
• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices
The University of Lahore
 
• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input Devices• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input Devices
The University of Lahore
 
Components of Computer System
Components of Computer SystemComponents of Computer System
Components of Computer System
The University of Lahore
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
The University of Lahore
 
Classification of Computer
Classification of ComputerClassification of Computer
Classification of Computer
The University of Lahore
 
Classification of Computer
Classification of ComputerClassification of Computer
Classification of Computer
The University of Lahore
 
Types of Computer
Types of Computer Types of Computer
Types of Computer
The University of Lahore
 
Generations of Computer
Generations of Computer Generations of Computer
Generations of Computer
The University of Lahore
 
Computer and Examples , History of Computer
Computer and Examples , History of ComputerComputer and Examples , History of Computer
Computer and Examples , History of Computer
The University of Lahore
 
Rehabilitation Engineering
Rehabilitation Engineering Rehabilitation Engineering
Rehabilitation Engineering
The University of Lahore
 
Introduction to rehabilitation
Introduction to rehabilitationIntroduction to rehabilitation
Introduction to rehabilitation
The University of Lahore
 
2. levels of prevention
2. levels of prevention2. levels of prevention
2. levels of prevention
The University of Lahore
 
definitions of health& concept of disease
definitions of health& concept of diseasedefinitions of health& concept of disease
definitions of health& concept of disease
The University of Lahore
 

More from The University of Lahore (17)

BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...BioMedical Instrumentation-II Parts of centrifuge machine  Centrifugation Tec...
BioMedical Instrumentation-II Parts of centrifuge machine Centrifugation Tec...
 
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...
BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...BioMedical Instrumentation-II What is  centrifugation? Basic principle of  ce...
BioMedical Instrumentation-II What is centrifugation? Basic principle of ce...
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Storage Devices
Storage DevicesStorage Devices
Storage Devices
 
• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices
 
• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input Devices• Input/output Devices • Input Devices • Types of Input Devices
• Input/output Devices • Input Devices • Types of Input Devices
 
Components of Computer System
Components of Computer SystemComponents of Computer System
Components of Computer System
 
Languages in computer
Languages in computerLanguages in computer
Languages in computer
 
Classification of Computer
Classification of ComputerClassification of Computer
Classification of Computer
 
Classification of Computer
Classification of ComputerClassification of Computer
Classification of Computer
 
Types of Computer
Types of Computer Types of Computer
Types of Computer
 
Generations of Computer
Generations of Computer Generations of Computer
Generations of Computer
 
Computer and Examples , History of Computer
Computer and Examples , History of ComputerComputer and Examples , History of Computer
Computer and Examples , History of Computer
 
Rehabilitation Engineering
Rehabilitation Engineering Rehabilitation Engineering
Rehabilitation Engineering
 
Introduction to rehabilitation
Introduction to rehabilitationIntroduction to rehabilitation
Introduction to rehabilitation
 
2. levels of prevention
2. levels of prevention2. levels of prevention
2. levels of prevention
 
definitions of health& concept of disease
definitions of health& concept of diseasedefinitions of health& concept of disease
definitions of health& concept of disease
 

Recently uploaded

Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 

Recently uploaded (20)

Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 

Numbering System Base Conversion

  • 1. Lecture no : 11 Introduction to Computer/ Computer Education Mr. Muhammad Moazzam MPhil Public Health BSc BioMedical University of the Lahore
  • 3. Number systems • Decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 • Binary – 0, 1 • Octal – 0, 1, 2, 3, 4, 5, 6, 7 • Hexadecimal system – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F • ASCII
  • 4. Why different number systems? • Binary number result in quite a long string of 0s and 1s • Easier for the computer to interpret input from the user
  • 5. Base Conversion • In daily life, we use decimal (base 10) number system • Computer can only read in 0 and 1 – Number system being used inside a computer is binary (base 2) – Octal (base 8) and hexadecimal (base 16) are used in programming for convenience
  • 6.
  • 7. Quantities/Counting (1 of 2) Decimal Binary Octal Hexa- decimal 0 0 0 0 1 1 1 1 2 10 2 2 3 11 3 3 4 100 4 4 5 101 5 5 6 110 6 6 7 111 7 7
  • 8. Quantities/Counting (2 of 2) Decimal Binary Octal Hexa- decimal 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
  • 9. Conversion Among Bases • The possibilities: Hexadecimal Decimal Octal Binary
  • 10. Binary and decimal system • Binary to decimal – X^27 + X^26+ X^25+X ^ 24 + X ^ 23+ X ^ 22+ X ^ 21 + X ^20 • Decimal to binary – Keep dividing the number by two and keep track of the remainders. – Arrange the remainders (0 or 1) from the least significant (right) to most significant (left) digits
  • 11. Octal and Hexadecimal system • Binary to Octal (8 = 23) – Every 3 binary digit equivalent to one octal digit • Binary to Hexadecimal (16 = 24) – Every 4 binary digit equivalent to one hexadecimal digit • Octal to binary – Every one octal digit equivalent to 3 binary digit • Hexadecimal to binary – Every one hexadecimal digit equivalent to 4 binary digits
  • 12. Base Conversion • How to convert the decimal number to other number system – e.g. convert 1810 in binary form 2 |18 ----0 2 |09 ----1 2 |04 ----0 2 |02 ----0 1 – 1810 = 100102
  • 13. Exercise 1-Convert 10001000(2) to Decimal. 2-Convert 1000111.001(2) to Decimal. 3-Convert 6767(10) to Binary. 4-Convert 186(10) to Hexadecimal. 5-Convert 5BD(16) to Decimal. 6-Convert 16AC(16) to Binary. 7-Convert 10001110(2) to Hexadecimal. 8-Convert 196(10) to Octal.
  • 14. Exercise 9-Convert 0216(8) to decimal. 10-Convert 0216(8) to binary. 11-726(8) to decimal. 12-27FB16 to octal. 13-(104)10 to binary 14-(AF)16 to decimal.
  • 15. Base Conversion For example: 62 = 111110 = 76 = 3E decimal binary octal hexadecimal 1 For Decimal: 62 = 6x101 + 2x100 2 For Binary: 111110 = 1x25 + 1x24 + 1x23 + 1x22 + 1x21 + 0x20 3 For Octal: 76 = 7x81+ 6x80 4 For Hexadecimal: 3E = 3x161 + 14x160 • Since for hexadecimal system, each digit contains number from 1 to 15, thus we use A, B, C, D, E and F to represent 10, 11, 12, 13, 14 and 15.