SlideShare a Scribd company logo
2
Most read
3
Most read
6
Most read
 
Real Numbers & Integers All numbers belong to the set or group called  real numbers . Inside the set of real numbers is a set of all positive and negative whole numbers. This set is called  integers . Real numbers -4.6 2.46 13.7 Integers 0 -7 5 221 -31 100.052 -52.414 0.0014
Signed Bit Representation The simplest way of representing a negative number in binary is to use the first bit of the number to represent whether the number is positive or negative: 011  =  3 111  =  -3 This is known as  signed bit  representation. The problem with signed bit representation is that there are 2 values for zero: 000  =  0 100  =  -0
Two’s Complement Representation A better way of representing negative numbers in binary is by using  Two’s Complement . Two’s Complement is designed so that: the set of integers show symmetry about zero Binary Decimal 11111101 -3 11111110 -2 11111111 -1 00000000 0 00000001 1 00000010 2 00000011 3
Two’s Complement Representation Two’s complement is designed so that: adding 1 to any number produces the next number (ignoring carry bits) 00000010 + 1 00000011
Two’s Complement Representation To find the Two’s Complement of a number (it’s opposite sign ): Change all the  1 ’s to  0  and  0 ’s to  1 . Add 1.
Two’s Complement Representation For example, how would  -5  be represented using Two’s Complement?  5   =   000000101 Change all the  1 ’s to  0  and  0 ’s to  1 . 11111010 Add 1. 11111010    +1 11111011 So  -5  as Two’s Complement =  11111011
Two’s Complement Representation Example 2 - find the Two’s Complement of how would  88  88   =   01011000 Change all the  1 ’s to  0  and  0 ’s to  1 . 10100111 Add 1. 10100111    +1 10101000 So  -88  as Two’s Complement =  10101000
Range The number of integers which could be stored in one byte (8 bits) is   2 8  = 256 The range of integers which could be stored in one byte (8 bits) using Two’s Complement is -128 to +127 Why does there seem to be one less positive number? There are  255  numbers plus the value  0 . So there are  256  numbers in all.
Range What range of numbers could be stored in two bytes using twos complement?   2 16  = 65536 The range of integers which could be stored in one byte (8 bits) is -32768 to +32767 This method of representing large numbers is unsuitable because of the increased memory needed to store the large number of bits needed. A solution to this is to use  Floating Point Representation .
Credits Higher Computing – Data Representation – Representation of  Negative Numbers Produced by P. Greene and adapted by R. G. Simpson for the City of Edinburgh Council 2004 Adapted by M. Cunningham 2010

More Related Content

PPTX
Multiplication algorithm
PPTX
Register Organisation of 8086 Microprocessor
PPT
1.1 binary tree
PPTX
Queue ppt
PPT
Digital Logic Design
PPTX
Structures in c language
PPTX
Binary Arithmetic
PPTX
Booth’s algorithm.(a014& a015)
Multiplication algorithm
Register Organisation of 8086 Microprocessor
1.1 binary tree
Queue ppt
Digital Logic Design
Structures in c language
Binary Arithmetic
Booth’s algorithm.(a014& a015)

What's hot (20)

PPTX
Queue and its operations
PPTX
Searching and sorting
PPTX
Array Introduction One-dimensional array Multidimensional array
PPTX
Linked List
PPTX
Arrays & Strings
PPTX
Threaded Binary Tree.pptx
PPTX
Unit 4-booth algorithm
PPT
Selection sort
PPTX
PPTX
2 3 Trees Algorithm - Data Structure
PPTX
Stack and queue
PPT
BCD,GRAY and EXCESS 3 codes
PPTX
Circular Queue data structure
PPTX
Microoperations
PPT
Data Structures- Part5 recursion
PPTX
sequential circuits
PPT
Computer organisation Module 1.ppt
PPTX
sorting and its types
PPTX
Sparse matrix
Queue and its operations
Searching and sorting
Array Introduction One-dimensional array Multidimensional array
Linked List
Arrays & Strings
Threaded Binary Tree.pptx
Unit 4-booth algorithm
Selection sort
2 3 Trees Algorithm - Data Structure
Stack and queue
BCD,GRAY and EXCESS 3 codes
Circular Queue data structure
Microoperations
Data Structures- Part5 recursion
sequential circuits
Computer organisation Module 1.ppt
sorting and its types
Sparse matrix
Ad

Viewers also liked (20)

PPTX
Powerpoint presentation -negative numbers
PPTX
1s and 2s complement
PPTX
review of number systems and codes
PDF
Fairtrade Bananas
PPT
Fair trade challenge: bananas
PPTX
"Growing Up"
PPTX
Adding and subtracting positive and negative rational number notes 1
PPTX
How computers represent data
PDF
Main Memory
PPTX
Negative numbers(final)
PDF
OS - Thread
ODP
LSE's PSHE Project
PPT
Topic 1 Data Representation
PPT
Introduction to Positive and Negative Numbers
DOCX
2's complement
PDF
Operating Systems 1 (7/12) - Threads
PPT
Understanding negative numbers
PPT
Complement
PPTX
The human life cycle
PPT
Non Chronological Reports
Powerpoint presentation -negative numbers
1s and 2s complement
review of number systems and codes
Fairtrade Bananas
Fair trade challenge: bananas
"Growing Up"
Adding and subtracting positive and negative rational number notes 1
How computers represent data
Main Memory
Negative numbers(final)
OS - Thread
LSE's PSHE Project
Topic 1 Data Representation
Introduction to Positive and Negative Numbers
2's complement
Operating Systems 1 (7/12) - Threads
Understanding negative numbers
Complement
The human life cycle
Non Chronological Reports
Ad

Similar to Representation of Negative Numbers (20)

PPT
SD & D Negative Numbers
PPTX
Chapter_Two.pptx data representation in computer
PDF
Binaty Arithmetic and Binary coding schemes
PPT
3.Fixed-Floating Point.ppt
PPT
Data Representation Data Representation1
PPTX
Binary arithmetic
PPT
Data representation
PDF
Chapter 2_Number system (EEEg4302).pdf
PDF
DigitalLogic_NumberRepresentation.pdf advanced
PPTX
Data Representation
PPT
Number Systems.ppt
PPT
Integer Representation
PPT
Chapter 2 Data Representation.pptChapter 2 Data Representation.ppt
PPT
Chapter 02 Data Types
PPT
dld chapter 2 logic gates and logic works affer subtactor
PPTX
Data Representation
PDF
Digital logic design of 2nd Lecture 2.pdf
PPTX
Data Representation from knowledge center
PDF
SD & D Negative Numbers
Chapter_Two.pptx data representation in computer
Binaty Arithmetic and Binary coding schemes
3.Fixed-Floating Point.ppt
Data Representation Data Representation1
Binary arithmetic
Data representation
Chapter 2_Number system (EEEg4302).pdf
DigitalLogic_NumberRepresentation.pdf advanced
Data Representation
Number Systems.ppt
Integer Representation
Chapter 2 Data Representation.pptChapter 2 Data Representation.ppt
Chapter 02 Data Types
dld chapter 2 logic gates and logic works affer subtactor
Data Representation
Digital logic design of 2nd Lecture 2.pdf
Data Representation from knowledge center

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
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Updated Idioms and Phrasal Verbs in English subject
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
Complications of Minimal Access Surgery at WLH
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PPTX
Cell Structure & Organelles in detailed.
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Weekly quiz Compilation Jan -July 25.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Updated Idioms and Phrasal Verbs in English subject
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Complications of Minimal Access Surgery at WLH
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
What if we spent less time fighting change, and more time building what’s rig...
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Cell Structure & Organelles in detailed.
A systematic review of self-coping strategies used by university students to ...
History, Philosophy and sociology of education (1).pptx
Final Presentation General Medicine 03-08-2024.pptx
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Yogi Goddess Pres Conference Studio Updates
STATICS OF THE RIGID BODIES Hibbelers.pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Paper A Mock Exam 9_ Attempt review.pdf.
Weekly quiz Compilation Jan -July 25.pdf

Representation of Negative Numbers

  • 1.  
  • 2. Real Numbers & Integers All numbers belong to the set or group called real numbers . Inside the set of real numbers is a set of all positive and negative whole numbers. This set is called integers . Real numbers -4.6 2.46 13.7 Integers 0 -7 5 221 -31 100.052 -52.414 0.0014
  • 3. Signed Bit Representation The simplest way of representing a negative number in binary is to use the first bit of the number to represent whether the number is positive or negative: 011 = 3 111 = -3 This is known as signed bit representation. The problem with signed bit representation is that there are 2 values for zero: 000 = 0 100 = -0
  • 4. Two’s Complement Representation A better way of representing negative numbers in binary is by using Two’s Complement . Two’s Complement is designed so that: the set of integers show symmetry about zero Binary Decimal 11111101 -3 11111110 -2 11111111 -1 00000000 0 00000001 1 00000010 2 00000011 3
  • 5. Two’s Complement Representation Two’s complement is designed so that: adding 1 to any number produces the next number (ignoring carry bits) 00000010 + 1 00000011
  • 6. Two’s Complement Representation To find the Two’s Complement of a number (it’s opposite sign ): Change all the 1 ’s to 0 and 0 ’s to 1 . Add 1.
  • 7. Two’s Complement Representation For example, how would -5 be represented using Two’s Complement? 5 = 000000101 Change all the 1 ’s to 0 and 0 ’s to 1 . 11111010 Add 1. 11111010 +1 11111011 So -5 as Two’s Complement = 11111011
  • 8. Two’s Complement Representation Example 2 - find the Two’s Complement of how would 88 88 = 01011000 Change all the 1 ’s to 0 and 0 ’s to 1 . 10100111 Add 1. 10100111 +1 10101000 So -88 as Two’s Complement = 10101000
  • 9. Range The number of integers which could be stored in one byte (8 bits) is 2 8 = 256 The range of integers which could be stored in one byte (8 bits) using Two’s Complement is -128 to +127 Why does there seem to be one less positive number? There are 255 numbers plus the value 0 . So there are 256 numbers in all.
  • 10. Range What range of numbers could be stored in two bytes using twos complement? 2 16 = 65536 The range of integers which could be stored in one byte (8 bits) is -32768 to +32767 This method of representing large numbers is unsuitable because of the increased memory needed to store the large number of bits needed. A solution to this is to use Floating Point Representation .
  • 11. Credits Higher Computing – Data Representation – Representation of Negative Numbers Produced by P. Greene and adapted by R. G. Simpson for the City of Edinburgh Council 2004 Adapted by M. Cunningham 2010