SlideShare a Scribd company logo
 
Decimal Numbers In every day life we use  10  decimal numbers to represent numerical data 0  1  2  3  4  5  6  7  8  9 The number  42678  can be read as ten thousands 10 4 thousands 10 3 hundreds 10 2 tens 10 1 units 10 0 4 2 6 7 8 The number that forms the basis of any system is called the  base . So the decimal number system is called  base 10 .
The Binary Number System The lowest number base that can be used to represent numbers is  base 2 . Using only two numbers to represent what happens inside a computer is called the  binary system . on = 1 bit off = 0 bit
Why design computers as 2 state devices? 1. Simplicity in only having to generate and detect two voltage levels. 2. Good tolerance, because a degraded positive voltage (1 bit) is still recognisable as a positive voltage
Why design computers as 2 state devices? 3. Calculations are kept simple.  There are  four  rules for addition / subtraction / multiplication /  division in the binary number system. There are  one hundred  rules for addition / subtraction / multiplication /  division in the decimal number system.
Why design computers as 2 state devices? 4. Magnetic and optical media are suited to two state systems.
Binary Numbers We have seen that the number  42678  can be represented as: 10 4 10 3 10 2 10 1 10 0 4 2 6 7 8 Binary (base 2) works in a similar way. The binary number  1 1 0 0 1  can be represented as: 2 4 2 3 2 2 2 1 2 0 1 1 0 1 1 Or 16 8 4 2 1 1 1 0 1 1
Converting Binary Numbers to Decimal The binary number  1 1 0 0 1 16 8 4 2 1 1 1 0 0 1 = ( 1  * 16) + ( 1  * 8) + ( 0  * 4)  + ( 0  * 2) + ( 1  * 1)  = 16 + 8 + 0 + 0 + 1 = 25
Converting a Byte to Decimal The term bit is short for  b inary dig it A byte is made up of  8  bits The byte  1 0 1 0 1 1 0 1  can be converted to decimal as: 16 8 4 2 1 1 0 1 0 1 1 0 1 = ( 1  * 128) + ( 1  * 32) + ( 1  * 8) + ( 1  * 4)  + ( 1  * 1)  = 128 + 32 + 8 + 4 + 1 = 173 32 64 128
Converting Decimal Numbers to Binary Example: Convert  86  to binary 128 0 Next  64 . Does  64  go into 86? Yes. 128 64 0 1 Subtract the  64  from 86, leaving 22.  Next  32 . Does  32  go into the remaining 22? No  128 64 32 0 1 0 Start with  128 . Does  128  go into 86? No.
Converting Decimal Numbers to Binary 128 64 32 16 0 1 0 1 Next  16 . Does  16  go into 22? Yes. Subtract the  16  from 22, leaving 6.  Next  8 . Does  8  go into the remaining 6? No  128 64 32 16 8 0 1 0 1 0 Next  4 . Does  4  go into the remaining 6? Yes Subtract  4  from 6, leaving 2. Next  2 . Does  2  go into the remaining 2? Yes Subtract  2  from 2, leaving 0. Finally  1 . Does  1  go into the remaining 0? No 128 64 32 16 8 4 2 1 0 1 0 1 0 1 1 0
Credits ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

BCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operationsBCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operations
Dhananjaysinh Jhala
 
CCS103 Bits, Bytes, Binary
CCS103 Bits, Bytes, BinaryCCS103 Bits, Bytes, Binary
CCS103 Bits, Bytes, Binary
Richard Homa
 
Number systems
Number systemsNumber systems
Number systems
KalaTecno
 
Converting denary binary
Converting denary binaryConverting denary binary
Converting denary binary
ysolanki78
 
Binary true ppt
Binary true pptBinary true ppt
Binary true ppt
madhuvardhan
 
Twos complement
Twos complementTwos complement
Twos complement
Ronald Alexander Rivero
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
Chamila Fernando
 
Binary numbers
Binary numbersBinary numbers
Binary numbers
atcnerd
 
Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01
Abhay kadu
 
B sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemB sc cs i bo-de u-i number system
B sc cs i bo-de u-i number system
Rai University
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
gavhays
 
Binary Review
Binary ReviewBinary Review
Binary Review
swascher
 
Floating point presentation
Floating point presentationFloating point presentation
Floating point presentation
SnehalataAgasti
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
Elizabeth de Leon Aler
 
Binary
BinaryBinary
Binary
rlc6009
 
Easy how to work subnet etc
Easy how to work subnet etcEasy how to work subnet etc
Easy how to work subnet etc
Tanya Lo
 

What's hot (16)

BCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operationsBCD arithmetic and 16-bit data operations
BCD arithmetic and 16-bit data operations
 
CCS103 Bits, Bytes, Binary
CCS103 Bits, Bytes, BinaryCCS103 Bits, Bytes, Binary
CCS103 Bits, Bytes, Binary
 
Number systems
Number systemsNumber systems
Number systems
 
Converting denary binary
Converting denary binaryConverting denary binary
Converting denary binary
 
Binary true ppt
Binary true pptBinary true ppt
Binary true ppt
 
Twos complement
Twos complementTwos complement
Twos complement
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Binary numbers
Binary numbersBinary numbers
Binary numbers
 
Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01
 
B sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemB sc cs i bo-de u-i number system
B sc cs i bo-de u-i number system
 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
 
Binary Review
Binary ReviewBinary Review
Binary Review
 
Floating point presentation
Floating point presentationFloating point presentation
Floating point presentation
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Binary
BinaryBinary
Binary
 
Easy how to work subnet etc
Easy how to work subnet etcEasy how to work subnet etc
Easy how to work subnet etc
 

Viewers also liked

ISDD Database Structure N5
ISDD Database Structure N5ISDD Database Structure N5
ISDD Database Structure N5
Forrester High School
 
ISDD Database Keys N5
ISDD Database Keys N5ISDD Database Keys N5
ISDD Database Keys N5
Forrester High School
 
N5 ISDD Testing
N5 ISDD TestingN5 ISDD Testing
N5 ISDD Testing
Forrester High School
 
N5 ISDD Hardware Requirements
N5 ISDD Hardware RequirementsN5 ISDD Hardware Requirements
N5 ISDD Hardware Requirements
Forrester High School
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
gavhays
 
N5 ISDD Software Requirements
N5 ISDD Software RequirementsN5 ISDD Software Requirements
N5 ISDD Software Requirements
Forrester High School
 

Viewers also liked (6)

ISDD Database Structure N5
ISDD Database Structure N5ISDD Database Structure N5
ISDD Database Structure N5
 
ISDD Database Keys N5
ISDD Database Keys N5ISDD Database Keys N5
ISDD Database Keys N5
 
N5 ISDD Testing
N5 ISDD TestingN5 ISDD Testing
N5 ISDD Testing
 
N5 ISDD Hardware Requirements
N5 ISDD Hardware RequirementsN5 ISDD Hardware Requirements
N5 ISDD Hardware Requirements
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
 
N5 ISDD Software Requirements
N5 ISDD Software RequirementsN5 ISDD Software Requirements
N5 ISDD Software Requirements
 

Similar to Representation of Positive Numbers

Representation Of Data
Representation Of DataRepresentation Of Data
Representation Of Data
gavhays
 
Computer Systems Data Representation
Computer Systems   Data RepresentationComputer Systems   Data Representation
Computer Systems Data Representation
iarthur
 
Network Slides
Network SlidesNetwork Slides
Network Slides
iarthur
 
Int 2 data representation 2010
Int 2 data representation 2010Int 2 data representation 2010
Int 2 data representation 2010
iarthur
 
Numbering Systems
Numbering SystemsNumbering Systems
Numbering Systems
ImranulHasan6
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
ekul
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
Kyle
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
Wollo UNiversity
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
W 9 numbering systemW 9 numbering system
Number system
Number systemNumber system
Number system
Mohit Saini
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
sohag sikder
 
Binary numbers
Binary numbersBinary numbers
Binary numbers
SabahtHussein
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16
John Todora
 
Bits and the organization of memory
Bits and the organization of memoryBits and the organization of memory
Bits and the organization of memory
dmendonsa
 
Easy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for StartersEasy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for Starters
S Khawaja
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
ekul
 
Learning& Teaching Systems Ppt
Learning& Teaching  Systems PptLearning& Teaching  Systems Ppt
Learning& Teaching Systems Ppt
Naruin
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
Kyle
 
New Computer Systems
New Computer SystemsNew Computer Systems
New Computer Systems
mrsmackenzie
 

Similar to Representation of Positive Numbers (20)

Representation Of Data
Representation Of DataRepresentation Of Data
Representation Of Data
 
Computer Systems Data Representation
Computer Systems   Data RepresentationComputer Systems   Data Representation
Computer Systems Data Representation
 
Network Slides
Network SlidesNetwork Slides
Network Slides
 
Int 2 data representation 2010
Int 2 data representation 2010Int 2 data representation 2010
Int 2 data representation 2010
 
Numbering Systems
Numbering SystemsNumbering Systems
Numbering Systems
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
W 9 numbering system
W 9 numbering systemW 9 numbering system
W 9 numbering system
 
Number system
Number systemNumber system
Number system
 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
 
Binary numbers
Binary numbersBinary numbers
Binary numbers
 
04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16
 
Bits and the organization of memory
Bits and the organization of memoryBits and the organization of memory
Bits and the organization of memory
 
Easy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for StartersEasy IP Addressing and Subnetting Manual for Starters
Easy IP Addressing and Subnetting Manual for Starters
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
 
Learning& Teaching Systems Ppt
Learning& Teaching  Systems PptLearning& Teaching  Systems Ppt
Learning& Teaching Systems Ppt
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
 
New Computer Systems
New Computer SystemsNew Computer Systems
New Computer Systems
 

More from Forrester High School

Program Design
Program DesignProgram Design
Program Design
Forrester High School
 
Database Evaluation
Database EvaluationDatabase Evaluation
Database Evaluation
Forrester High School
 
Testing SQL
Testing SQLTesting SQL
SQL
SQLSQL
Database Query Design
Database Query DesignDatabase Query Design
Database Query Design
Forrester High School
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
Forrester High School
 
Compound Keys
Compound KeysCompound Keys
Compound Keys
Forrester High School
 
Entity Occurrence Diagrams
Entity Occurrence DiagramsEntity Occurrence Diagrams
Entity Occurrence Diagrams
Forrester High School
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
Forrester High School
 
Database Analysis
Database AnalysisDatabase Analysis
Database Analysis
Forrester High School
 
Software Evaluation
Software EvaluationSoftware Evaluation
Software Evaluation
Forrester High School
 
Software Testing
Software TestingSoftware Testing
Software Testing
Forrester High School
 
Standard Algorithms
Standard AlgorithmsStandard Algorithms
Standard Algorithms
Forrester High School
 
File Handling
File HandlingFile Handling
File Handling
Forrester High School
 
Python Predefined Functions
Python Predefined FunctionsPython Predefined Functions
Python Predefined Functions
Forrester High School
 
Python Substrings
Python SubstringsPython Substrings
Python Substrings
Forrester High School
 
Variable Scope
Variable ScopeVariable Scope
Variable Scope
Forrester High School
 
Sub-programs
Sub-programsSub-programs
Sub-programs
Forrester High School
 
Records in Python
Records in PythonRecords in Python
Records in Python
Forrester High School
 
Parallel arrays in python
Parallel arrays in pythonParallel arrays in python
Parallel arrays in python
Forrester High School
 

More from Forrester High School (20)

Program Design
Program DesignProgram Design
Program Design
 
Database Evaluation
Database EvaluationDatabase Evaluation
Database Evaluation
 
Testing SQL
Testing SQLTesting SQL
Testing SQL
 
SQL
SQLSQL
SQL
 
Database Query Design
Database Query DesignDatabase Query Design
Database Query Design
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Compound Keys
Compound KeysCompound Keys
Compound Keys
 
Entity Occurrence Diagrams
Entity Occurrence DiagramsEntity Occurrence Diagrams
Entity Occurrence Diagrams
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Database Analysis
Database AnalysisDatabase Analysis
Database Analysis
 
Software Evaluation
Software EvaluationSoftware Evaluation
Software Evaluation
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Standard Algorithms
Standard AlgorithmsStandard Algorithms
Standard Algorithms
 
File Handling
File HandlingFile Handling
File Handling
 
Python Predefined Functions
Python Predefined FunctionsPython Predefined Functions
Python Predefined Functions
 
Python Substrings
Python SubstringsPython Substrings
Python Substrings
 
Variable Scope
Variable ScopeVariable Scope
Variable Scope
 
Sub-programs
Sub-programsSub-programs
Sub-programs
 
Records in Python
Records in PythonRecords in Python
Records in Python
 
Parallel arrays in python
Parallel arrays in pythonParallel arrays in python
Parallel arrays in python
 

Recently uploaded

Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
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
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 

Recently uploaded (20)

Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
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
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 

Representation of Positive Numbers

  • 1.  
  • 2. Decimal Numbers In every day life we use 10 decimal numbers to represent numerical data 0 1 2 3 4 5 6 7 8 9 The number 42678 can be read as ten thousands 10 4 thousands 10 3 hundreds 10 2 tens 10 1 units 10 0 4 2 6 7 8 The number that forms the basis of any system is called the base . So the decimal number system is called base 10 .
  • 3. The Binary Number System The lowest number base that can be used to represent numbers is base 2 . Using only two numbers to represent what happens inside a computer is called the binary system . on = 1 bit off = 0 bit
  • 4. Why design computers as 2 state devices? 1. Simplicity in only having to generate and detect two voltage levels. 2. Good tolerance, because a degraded positive voltage (1 bit) is still recognisable as a positive voltage
  • 5. Why design computers as 2 state devices? 3. Calculations are kept simple. There are four rules for addition / subtraction / multiplication / division in the binary number system. There are one hundred rules for addition / subtraction / multiplication / division in the decimal number system.
  • 6. Why design computers as 2 state devices? 4. Magnetic and optical media are suited to two state systems.
  • 7. Binary Numbers We have seen that the number 42678 can be represented as: 10 4 10 3 10 2 10 1 10 0 4 2 6 7 8 Binary (base 2) works in a similar way. The binary number 1 1 0 0 1 can be represented as: 2 4 2 3 2 2 2 1 2 0 1 1 0 1 1 Or 16 8 4 2 1 1 1 0 1 1
  • 8. Converting Binary Numbers to Decimal The binary number 1 1 0 0 1 16 8 4 2 1 1 1 0 0 1 = ( 1 * 16) + ( 1 * 8) + ( 0 * 4) + ( 0 * 2) + ( 1 * 1) = 16 + 8 + 0 + 0 + 1 = 25
  • 9. Converting a Byte to Decimal The term bit is short for b inary dig it A byte is made up of 8 bits The byte 1 0 1 0 1 1 0 1 can be converted to decimal as: 16 8 4 2 1 1 0 1 0 1 1 0 1 = ( 1 * 128) + ( 1 * 32) + ( 1 * 8) + ( 1 * 4) + ( 1 * 1) = 128 + 32 + 8 + 4 + 1 = 173 32 64 128
  • 10. Converting Decimal Numbers to Binary Example: Convert 86 to binary 128 0 Next 64 . Does 64 go into 86? Yes. 128 64 0 1 Subtract the 64 from 86, leaving 22. Next 32 . Does 32 go into the remaining 22? No 128 64 32 0 1 0 Start with 128 . Does 128 go into 86? No.
  • 11. Converting Decimal Numbers to Binary 128 64 32 16 0 1 0 1 Next 16 . Does 16 go into 22? Yes. Subtract the 16 from 22, leaving 6. Next 8 . Does 8 go into the remaining 6? No 128 64 32 16 8 0 1 0 1 0 Next 4 . Does 4 go into the remaining 6? Yes Subtract 4 from 6, leaving 2. Next 2 . Does 2 go into the remaining 2? Yes Subtract 2 from 2, leaving 0. Finally 1 . Does 1 go into the remaining 0? No 128 64 32 16 8 4 2 1 0 1 0 1 0 1 1 0
  • 12.