SlideShare a Scribd company logo
SD & D Representing Positive Numbers
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
104
thousands
103
hundreds
102
tens
101
units
100
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 bitoff = 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:
104
103
102
101
100
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:
24
23
22
21
20
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 binary digit
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
3264128
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.
128 64 32 16
0 1 0 1
Next 16. Does 16 go into 22? Yes.
Converting Decimal Numbers to Binary
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
Higher Computing – Data Representation – Representation of Positive
Numbers
Produced by P. Greene and adapted by R. G. Simpson for the City of
Edinburgh Council 2004
Adapted by M. Cunningham 2010
All images licenced under Creative Commons 3.0
•Hard Disk B by Christian Jansky
•CD-ROM by Vincent1969
•Voltometer by Brandi Sims
•Numbers by Procsilas Moscas

More Related Content

PPT
Representation of Positive Numbers
PPTX
What is binary and why do we use it?
PPTX
CSC103 Bits, Bytes & Binary
PPTX
How computers represent data
PPT
Int 2 data representation 2010
PPT
PPTX
Binary numbers
PPT
Computer Systems Data Representation
Representation of Positive Numbers
What is binary and why do we use it?
CSC103 Bits, Bytes & Binary
How computers represent data
Int 2 data representation 2010
Binary numbers
Computer Systems Data Representation

What's hot (19)

PPTX
Binary computing
PPTX
Data representation
PPTX
Unit 3 Data Representation
PPT
Topic 1 Data Representation
PPTX
Bits and the organization of memory
PPT
Number system
PPTX
Data representation in computers
PPTX
More on number system
PPT
IS 139 Lecture 4
PPTX
Binary Slides
PDF
خاص Binary
PPTX
Binary number ppt
PPTX
Binary true ppt
PPTX
PDF
Introduction to computer_lec_02
PPTX
CCS103 Bits, Bytes, Binary
PPTX
Introduction to computer_lec_02_fall_2018
PPT
Binary Arithmetic
DOCX
Converting denary binary
Binary computing
Data representation
Unit 3 Data Representation
Topic 1 Data Representation
Bits and the organization of memory
Number system
Data representation in computers
More on number system
IS 139 Lecture 4
Binary Slides
خاص Binary
Binary number ppt
Binary true ppt
Introduction to computer_lec_02
CCS103 Bits, Bytes, Binary
Introduction to computer_lec_02_fall_2018
Binary Arithmetic
Converting denary binary
Ad

Viewers also liked (8)

PPT
SD &D Binary Units
PPT
SD & D Negative Numbers
PPT
N5 Computing Science - Readability of code
PPT
National 5 Computing Science - Testing
PPT
SDD The Processor
PPT
Virtual machines, emulators and mobile devices
PPT
Database structure
PDF
7. The Software Development Process - Maintenance
SD &D Binary Units
SD & D Negative Numbers
N5 Computing Science - Readability of code
National 5 Computing Science - Testing
SDD The Processor
Virtual machines, emulators and mobile devices
Database structure
7. The Software Development Process - Maintenance
Ad

Similar to SD & D Representing Positive Numbers (20)

PPT
Representation Of Data
PPTX
09 binary number systems
PPTX
Digital Logic Design.pptx
PPT
Binary
PPTX
Binary, Decimal and Hexadecimal
PPTX
ELECTRICAL 411 L1 Digital Electronics.pptx
PPT
Digital Logic Design lec 2 slide.ppt DLD Lec 1.ppt
PPT
ENG241-Week1-NumberSystemsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
PDF
Number system
PDF
Digital electronics number system notes
PPT
08. Numeral Systems
PDF
01 number systems-students
DOCX
HexaDecimal-Number-Syatem-Use.-from-computer-science-subject-code-2210.docx
PPTX
Numbering Systems
PPT
2. Computer_Organization_unit_ 1_win.ppt
PPT
1. basic theories of information
PPTX
data representation
PPTX
Number-Systems presentation of the mathematics
Representation Of Data
09 binary number systems
Digital Logic Design.pptx
Binary
Binary, Decimal and Hexadecimal
ELECTRICAL 411 L1 Digital Electronics.pptx
Digital Logic Design lec 2 slide.ppt DLD Lec 1.ppt
ENG241-Week1-NumberSystemsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Number system
Digital electronics number system notes
08. Numeral Systems
01 number systems-students
HexaDecimal-Number-Syatem-Use.-from-computer-science-subject-code-2210.docx
Numbering Systems
2. Computer_Organization_unit_ 1_win.ppt
1. basic theories of information
data representation
Number-Systems presentation of the mathematics

More from Forrester High School (20)

PPTX
Program Design
PPTX
Database Evaluation
PPTX
PPTX
Database Query Design
PPTX
Data Dictionary
PPTX
Compound Keys
PPTX
Entity Occurrence Diagrams
PPTX
Entity Relationship Diagrams
PPTX
Database Analysis
PPTX
Software Evaluation
PPTX
Software Testing
PPTX
Standard Algorithms
PPTX
File Handling
PPTX
Python Predefined Functions
PPTX
Python Substrings
PPTX
Variable Scope
PPTX
Sub-programs
PPTX
Records in Python
PPTX
Parallel arrays in python
Program Design
Database Evaluation
Database Query Design
Data Dictionary
Compound Keys
Entity Occurrence Diagrams
Entity Relationship Diagrams
Database Analysis
Software Evaluation
Software Testing
Standard Algorithms
File Handling
Python Predefined Functions
Python Substrings
Variable Scope
Sub-programs
Records in Python
Parallel arrays in python

Recently uploaded (20)

PDF
Empowerment Technology for Senior High School Guide
PDF
advance database management system book.pdf
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
Complications of Minimal Access Surgery at WLH
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Classroom Observation Tools for Teachers
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
RMMM.pdf make it easy to upload and study
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
Digestion and Absorption of Carbohydrates, Proteina and Fats
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
Empowerment Technology for Senior High School Guide
advance database management system book.pdf
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Complications of Minimal Access Surgery at WLH
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Practical Manual AGRO-233 Principles and Practices of Natural Farming
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Unit 4 Skeletal System.ppt.pptxopresentatiom
A systematic review of self-coping strategies used by university students to ...
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Classroom Observation Tools for Teachers
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
RMMM.pdf make it easy to upload and study
What if we spent less time fighting change, and more time building what’s rig...
Digestion and Absorption of Carbohydrates, Proteina and Fats
LDMMIA Reiki Yoga Finals Review Spring Summer

SD & D Representing 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 104 thousands 103 hundreds 102 tens 101 units 100 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 bitoff = 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: 104 103 102 101 100 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: 24 23 22 21 20 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 binary digit 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 3264128
  • 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. 128 64 32 16 0 1 0 1 Next 16. Does 16 go into 22? Yes. Converting Decimal Numbers to Binary 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. Credits Higher Computing – Data Representation – Representation of Positive Numbers Produced by P. Greene and adapted by R. G. Simpson for the City of Edinburgh Council 2004 Adapted by M. Cunningham 2010 All images licenced under Creative Commons 3.0 •Hard Disk B by Christian Jansky •CD-ROM by Vincent1969 •Voltometer by Brandi Sims •Numbers by Procsilas Moscas