SlideShare a Scribd company logo
1 of 12
ย 
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

Number systems
Number systemsNumber systems
Number systems
KalaTecno
ย 
Binary true ppt
Binary true pptBinary true ppt
Binary true ppt
madhuvardhan
ย 
Binary numbers
Binary numbersBinary numbers
Binary numbers
atcnerd
ย 
Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01Binaryconversion 090715011937-phpapp01
Binaryconversion 090715011937-phpapp01
Abhay kadu
ย 
Binary Arithmetic
Binary ArithmeticBinary Arithmetic
Binary Arithmetic
gavhays
ย 
Binary Review
Binary ReviewBinary Review
Binary Review
swascher
ย 
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 (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
ย 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
ekul
ย 
Cit 1101 lec 02
Cit 1101 lec 02Cit 1101 lec 02
Cit 1101 lec 02
sohag sikder
ย 
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
ย 

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

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

ๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝ
ๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝ
ๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝ
ไธญ ๅคฎ็คพ
ย 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
ย 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
Krashi Coaching
ย 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
MirzaAbrarBaig5
ย 
ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡
ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡
ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡
ไธญ ๅคฎ็คพ
ย 

Recently uploaded (20)

8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
ย 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
ย 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
ย 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
ย 
ๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝ
ๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝ
ๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝๆœƒ่€ƒ่‹ฑ่ฝ
ย 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
ย 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
ย 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
ย 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
ย 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
ย 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
ย 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
ย 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
ย 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
ย 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
ย 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
ย 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
ย 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
ย 
ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡
ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡
ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡ๆœƒ่€ƒ่‹ฑๆ–‡
ย 
Bแป˜ LUYแป†N NGHE TIแบพNG ANH 8 GLOBAL SUCCESS Cแบข Nฤ‚M (Gแป’M 12 UNITS, Mแป–I UNIT Gแป’M 3...
Bแป˜ LUYแป†N NGHE TIแบพNG ANH 8 GLOBAL SUCCESS Cแบข Nฤ‚M (Gแป’M 12 UNITS, Mแป–I UNIT Gแป’M 3...Bแป˜ LUYแป†N NGHE TIแบพNG ANH 8 GLOBAL SUCCESS Cแบข Nฤ‚M (Gแป’M 12 UNITS, Mแป–I UNIT Gแป’M 3...
Bแป˜ LUYแป†N NGHE TIแบพNG ANH 8 GLOBAL SUCCESS Cแบข Nฤ‚M (Gแป’M 12 UNITS, Mแป–I UNIT Gแป’M 3...
ย 

Representation of Positive Numbers

  • 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.