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

What's hot (19)

PPTX
Binary computing
samina khan
 
PPTX
Data representation
rozanadiana
 
PPTX
Unit 3 Data Representation
Miss Short
 
PPT
Topic 1 Data Representation
ekul
 
PPTX
Bits and the organization of memory
dmendonsa
 
PPT
Number system
Amit Shaw
 
PPTX
Data representation in computers
Hazel Anne Quirao
 
PPTX
More on number system
samina khan
 
PPT
IS 139 Lecture 4
wajanga
 
PPTX
Binary Slides
jnoles
 
PDF
خاص Binary
fahadd264
 
PPTX
Binary number ppt
Ankit Gupta
 
PPTX
Binary true ppt
madhuvardhan
 
PPTX
Bcd
Talha Fazal
 
PDF
Introduction to computer_lec_02
Ramadan Babers, PhD
 
PPTX
CCS103 Bits, Bytes, Binary
Richard Homa
 
PPTX
Introduction to computer_lec_02_fall_2018
Ramadan Babers, PhD
 
PPT
Binary Arithmetic
gavhays
 
DOCX
Converting denary binary
ysolanki78
 
Binary computing
samina khan
 
Data representation
rozanadiana
 
Unit 3 Data Representation
Miss Short
 
Topic 1 Data Representation
ekul
 
Bits and the organization of memory
dmendonsa
 
Number system
Amit Shaw
 
Data representation in computers
Hazel Anne Quirao
 
More on number system
samina khan
 
IS 139 Lecture 4
wajanga
 
Binary Slides
jnoles
 
خاص Binary
fahadd264
 
Binary number ppt
Ankit Gupta
 
Binary true ppt
madhuvardhan
 
Introduction to computer_lec_02
Ramadan Babers, PhD
 
CCS103 Bits, Bytes, Binary
Richard Homa
 
Introduction to computer_lec_02_fall_2018
Ramadan Babers, PhD
 
Binary Arithmetic
gavhays
 
Converting denary binary
ysolanki78
 

Viewers also liked (8)

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

Similar to SD & D Representing Positive Numbers (20)

PPT
Representation Of Data
gavhays
 
PPTX
09 binary number systems
Lee Chadwick
 
PPTX
Digital Logic Design.pptx
AminaZahid16
 
PPT
Binary
heidirobison
 
PPTX
Binary, Decimal and Hexadecimal
UthraSowrirajan1
 
PPTX
ELECTRICAL 411 L1 Digital Electronics.pptx
mayorsamuel73
 
PPT
Digital Logic Design lec 2 slide.ppt DLD Lec 1.ppt
humairafatima22
 
PPT
ENG241-Week1-NumberSystemsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bao201875
 
PDF
Number system
JohnasDalusong1
 
PDF
Digital electronics number system notes
PRASHANTDUBEY114
 
PPT
08. Numeral Systems
Intro C# Book
 
PDF
01 number systems-students
meomeobsu
 
DOCX
HexaDecimal-Number-Syatem-Use.-from-computer-science-subject-code-2210.docx
Orin18
 
PPTX
Numbering Systems
ImranulHasan6
 
PPT
2. Computer_Organization_unit_ 1_win.ppt
hfaymsgya9
 
PPT
1. basic theories of information
'Cedrick SuperGreenilistic Expialidocious Antonino
 
PPTX
data representation
Haroon_007
 
PPTX
Number-Systems presentation of the mathematics
shivas379526
 
Representation Of Data
gavhays
 
09 binary number systems
Lee Chadwick
 
Digital Logic Design.pptx
AminaZahid16
 
Binary
heidirobison
 
Binary, Decimal and Hexadecimal
UthraSowrirajan1
 
ELECTRICAL 411 L1 Digital Electronics.pptx
mayorsamuel73
 
Digital Logic Design lec 2 slide.ppt DLD Lec 1.ppt
humairafatima22
 
ENG241-Week1-NumberSystemsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bao201875
 
Number system
JohnasDalusong1
 
Digital electronics number system notes
PRASHANTDUBEY114
 
08. Numeral Systems
Intro C# Book
 
01 number systems-students
meomeobsu
 
HexaDecimal-Number-Syatem-Use.-from-computer-science-subject-code-2210.docx
Orin18
 
Numbering Systems
ImranulHasan6
 
2. Computer_Organization_unit_ 1_win.ppt
hfaymsgya9
 
1. basic theories of information
'Cedrick SuperGreenilistic Expialidocious Antonino
 
data representation
Haroon_007
 
Number-Systems presentation of the mathematics
shivas379526
 
Ad

More from Forrester High School (20)

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

Recently uploaded (20)

PPTX
The Future of Artificial Intelligence Opportunities and Risks Ahead
vaghelajayendra784
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PPTX
Rules and Regulations of Madhya Pradesh Library Part-I
SantoshKumarKori2
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
I INCLUDED THIS TOPIC IS INTELLIGENCE DEFINITION, MEANING, INDIVIDUAL DIFFERE...
parmarjuli1412
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PPTX
Digital Professionalism and Interpersonal Competence
rutvikgediya1
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
Unlock the Power of Cursor AI: MuleSoft Integrations
Veera Pallapu
 
PPTX
Electrophysiology_of_Heart. Electrophysiology studies in Cardiovascular syste...
Rajshri Ghogare
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PDF
Tips for Writing the Research Title with Examples
Thelma Villaflores
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
The Future of Artificial Intelligence Opportunities and Risks Ahead
vaghelajayendra784
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
Rules and Regulations of Madhya Pradesh Library Part-I
SantoshKumarKori2
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
I INCLUDED THIS TOPIC IS INTELLIGENCE DEFINITION, MEANING, INDIVIDUAL DIFFERE...
parmarjuli1412
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
Digital Professionalism and Interpersonal Competence
rutvikgediya1
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
Virus sequence retrieval from NCBI database
yamunaK13
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Unlock the Power of Cursor AI: MuleSoft Integrations
Veera Pallapu
 
Electrophysiology_of_Heart. Electrophysiology studies in Cardiovascular syste...
Rajshri Ghogare
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Tips for Writing the Research Title with Examples
Thelma Villaflores
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 

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