SlideShare a Scribd company logo
2
Most read
3
Most read
6
Most read
R.D.SIVAKUMAR, M.Sc., M.Phil., M.Tech.,
Assistant Professor of Computer Science &
Assistant Professor and Head, Department of M.Com.(CA),
Ayya Nadar Janaki Ammal College,
Sivakasi – 626 124.
Mobile: 099440-42243
e-mail : sivamsccsit@gmail.com
website: www.rdsivakumar.blogspot.in
REPRESENTATION OF SIGNED NUMBERS
 If computers represent non-negative integers(unsigned) only.
 Computers represent negative integers(signed) only.
 The leftmost bit is 0, the number is positive.
 The leftmost bit is 1, the number is negative.
REPRESENTATION OF SIGNED NUMBERS
Sign+magnitude representation
0100 = +4
1100 = -4
The left most bit indicate the sign “0” indicates the positive.
And “1” indicates the negative.
 Change every 0 to 1 and every 1 to 0 .
 Add 1 to the result.
 Taken to pad(fill with zero) the original value out to the full representation width
before applying this algorithm.
 8-bit representation to store the number.
2’s COMPLEMENT REPRESENTAION
.
The binary equivalent of 23 is 10111.
Pad with zeros to make 8-bit pattern 00010111.
Invert all the bits 11101000.
Add 1 to the result 11101001.
Manual method to represent signed integers
in 2’s complement form
 This is an easier approach to represent signed integers.
 This is for –ve numbers only.
Step 1: Copy the bits from right to left, through and including the first 1.
Step 2: Copy the inverse of the remaining bits.
Example 1:
To represent –4 in a 4-bit representation:
The binary equivalent of the integer 4 is 0100
As per step1, copy the bits from right to left, through and including the
first 1 => 100
As per step2, copy the inverse of the remaining bits => 1 100 => -4
Example 2:
To represent –23 in a 8-bit representation:
The binary equivalent of 23 is 00010111
As per step 1: 1
As per step 2: 11101001 => -23
Interpretation of unsigned and signed integers
X = 1001
Y = 0011
Comparing two binary number for finding which is greater, the comparison
Depends on whether the numbers are considered as signed or unsigned numbers.
(X>Y) is this true or false
If X is greater than Y because they are unsigned.
If X is less than Y because they are signed.
Range of unsigned and signed integers
.
In a 4-bit system, the range of unsigned integers is from 0 to 15, that is, 0000 to
1111 in binary form. Each bit can have one of two values 0 or 1. Therefore, the total
number of patterns of 4 bits will be 2 X 2 X 2 X 2 = 16. In an n-bit system, the total
number of patterns will be 2n.. Hence, if n bits are used to represent an unsigned
integer value, the range is from 0 to 2n-1, that is, there are 2n different values.
In case of a signed integer, the most significant (left most) bit is used to represent
a sign. Hence, half of the 2n patterns are used for positive values and the other half
for negative values. The range of positive values is from 0 to 2n-1-1 and the range
of negative values is from –1 to –2n-1. In a 4-bit system, the range of signed
integers is from –8 to +7.
Representation of Signed Numbers - R.D.Sivakumar

More Related Content

PPTX
Binary Arithmetic
PDF
Binaty Arithmetic and Binary coding schemes
PPT
Representation of Real Numbers
PPT
Binary coded decimal r004
PPTX
Representation of Integers
PPTX
Binary arithmetic
PPT
Integer Representation
PPTX
Data Representation
Binary Arithmetic
Binaty Arithmetic and Binary coding schemes
Representation of Real Numbers
Binary coded decimal r004
Representation of Integers
Binary arithmetic
Integer Representation
Data Representation

What's hot (20)

PPT
Data types
PPTX
Binary Codes and Number System
PPTX
Data Representation
PPT
Number systems r002
PPTX
Codes r005
PPT
Lecture 3
PPT
Representation Of Data
PPTX
Computer architecture data representation
PPTX
Introduction of number system
PPTX
Number systems and conversions
PPTX
Introduction to number system
PPT
binary arithmetic rules
PPTX
Chapter 2.1 introduction to number system
PPT
Digital fundamendals r001a
PPTX
Floating point representation
PPT
Data representation
PPSX
Fixed point and floating-point numbers
PPT
Representation of Negative Numbers
PPTX
Quick tutorial on IEEE 754 FLOATING POINT representation
PPT
Lec 02 data representation part 1
Data types
Binary Codes and Number System
Data Representation
Number systems r002
Codes r005
Lecture 3
Representation Of Data
Computer architecture data representation
Introduction of number system
Number systems and conversions
Introduction to number system
binary arithmetic rules
Chapter 2.1 introduction to number system
Digital fundamendals r001a
Floating point representation
Data representation
Fixed point and floating-point numbers
Representation of Negative Numbers
Quick tutorial on IEEE 754 FLOATING POINT representation
Lec 02 data representation part 1
Ad

Similar to Representation of Signed Numbers - R.D.Sivakumar (20)

PPTX
Data Reprersentation
PPT
Ch02_4web456489478465165489445156568.ppt
PPT
Data Representation in Information Technology
PPT
3.Fixed-Floating Point.ppt
PDF
Finite word length effects
PPTX
datareprersentation 1.pptx
PDF
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
PPT
Mba admission in india
PDF
Module 2_Data representations.pdf
PDF
Notes unit 2
PPT
Mba admission in india
PPTX
STLD - UNIT I design and implentationssss
PPT
chapter 3 000Number_Systems.ppt
PPTX
Chapter 1: Binary System
PPTX
computer organization-computer organization-
PDF
DigitalLogic_NumberRepresentation.pdf advanced
PPT
Data storage (number,string,sound, image and video
PDF
Csc 2313 (lecture 3)
PDF
Csc 2313 (lecture 3)
PPT
lec2_BinaryArithmetic.ppt
Data Reprersentation
Ch02_4web456489478465165489445156568.ppt
Data Representation in Information Technology
3.Fixed-Floating Point.ppt
Finite word length effects
datareprersentation 1.pptx
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Mba admission in india
Module 2_Data representations.pdf
Notes unit 2
Mba admission in india
STLD - UNIT I design and implentationssss
chapter 3 000Number_Systems.ppt
Chapter 1: Binary System
computer organization-computer organization-
DigitalLogic_NumberRepresentation.pdf advanced
Data storage (number,string,sound, image and video
Csc 2313 (lecture 3)
Csc 2313 (lecture 3)
lec2_BinaryArithmetic.ppt
Ad

More from Sivakumar R D . (20)

PPTX
Internet Connections and Its Protocols - R D Sivakumar
PPT
Internet - R D Sivakumar.
PPTX
Data Communication - R D Sivakumar
PPTX
NETWORK SERVICES - R D Sivakumar
PPTX
Computer Communications - R D Sivakumar
PPTX
Online Data Protection - R D Sivakumar
PPT
Software Engineering - R.D.Sivakumar
PPT
Different Kinds of Internet Protocols - R.D.Sivakumar
PPT
Internet - R.D.Sivakumar
PPT
Electronic Publishing Tools for E-Learning - R.D.Sivakumar
PPT
E-learning Packages - R.D.Sivakumar
PPT
Digital Communication - R.D.Sivakumar
PPT
Digigogy in Teaching - R.D.Sivakumar
PPT
Cyber Commerce Technology - R.D.Sivakumar
PPT
Video Lesson Creation - R.D.Sivakumar
PPT
Cognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
PPT
Innovative Presentation - R.D.Sivakumar
PPT
Open Source in E-Learning - R.D.Sivakumar
PPTX
Tuxpaint - R.D.Sivakumar
PPT
Academic Blog Design - R.D.Sivakumar
Internet Connections and Its Protocols - R D Sivakumar
Internet - R D Sivakumar.
Data Communication - R D Sivakumar
NETWORK SERVICES - R D Sivakumar
Computer Communications - R D Sivakumar
Online Data Protection - R D Sivakumar
Software Engineering - R.D.Sivakumar
Different Kinds of Internet Protocols - R.D.Sivakumar
Internet - R.D.Sivakumar
Electronic Publishing Tools for E-Learning - R.D.Sivakumar
E-learning Packages - R.D.Sivakumar
Digital Communication - R.D.Sivakumar
Digigogy in Teaching - R.D.Sivakumar
Cyber Commerce Technology - R.D.Sivakumar
Video Lesson Creation - R.D.Sivakumar
Cognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
Innovative Presentation - R.D.Sivakumar
Open Source in E-Learning - R.D.Sivakumar
Tuxpaint - R.D.Sivakumar
Academic Blog Design - R.D.Sivakumar

Recently uploaded (20)

PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Institutional Correction lecture only . . .
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Pre independence Education in Inndia.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Lesson notes of climatology university.
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
GDM (1) (1).pptx small presentation for students
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Cell Types and Its function , kingdom of life
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Abdominal Access Techniques with Prof. Dr. R K Mishra
Institutional Correction lecture only . . .
Microbial diseases, their pathogenesis and prophylaxis
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pre independence Education in Inndia.pdf
Pharma ospi slides which help in ospi learning
Lesson notes of climatology university.
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
human mycosis Human fungal infections are called human mycosis..pptx
TR - Agricultural Crops Production NC III.pdf
Computing-Curriculum for Schools in Ghana
GDM (1) (1).pptx small presentation for students
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
O5-L3 Freight Transport Ops (International) V1.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx

Representation of Signed Numbers - R.D.Sivakumar

  • 1. R.D.SIVAKUMAR, M.Sc., M.Phil., M.Tech., Assistant Professor of Computer Science & Assistant Professor and Head, Department of M.Com.(CA), Ayya Nadar Janaki Ammal College, Sivakasi – 626 124. Mobile: 099440-42243 e-mail : sivamsccsit@gmail.com website: www.rdsivakumar.blogspot.in REPRESENTATION OF SIGNED NUMBERS
  • 2.  If computers represent non-negative integers(unsigned) only.  Computers represent negative integers(signed) only.  The leftmost bit is 0, the number is positive.  The leftmost bit is 1, the number is negative. REPRESENTATION OF SIGNED NUMBERS Sign+magnitude representation 0100 = +4 1100 = -4 The left most bit indicate the sign “0” indicates the positive. And “1” indicates the negative.
  • 3.  Change every 0 to 1 and every 1 to 0 .  Add 1 to the result.  Taken to pad(fill with zero) the original value out to the full representation width before applying this algorithm.  8-bit representation to store the number. 2’s COMPLEMENT REPRESENTAION . The binary equivalent of 23 is 10111. Pad with zeros to make 8-bit pattern 00010111. Invert all the bits 11101000. Add 1 to the result 11101001.
  • 4. Manual method to represent signed integers in 2’s complement form  This is an easier approach to represent signed integers.  This is for –ve numbers only. Step 1: Copy the bits from right to left, through and including the first 1. Step 2: Copy the inverse of the remaining bits. Example 1: To represent –4 in a 4-bit representation: The binary equivalent of the integer 4 is 0100 As per step1, copy the bits from right to left, through and including the first 1 => 100 As per step2, copy the inverse of the remaining bits => 1 100 => -4 Example 2: To represent –23 in a 8-bit representation: The binary equivalent of 23 is 00010111 As per step 1: 1 As per step 2: 11101001 => -23
  • 5. Interpretation of unsigned and signed integers X = 1001 Y = 0011 Comparing two binary number for finding which is greater, the comparison Depends on whether the numbers are considered as signed or unsigned numbers. (X>Y) is this true or false If X is greater than Y because they are unsigned. If X is less than Y because they are signed.
  • 6. Range of unsigned and signed integers . In a 4-bit system, the range of unsigned integers is from 0 to 15, that is, 0000 to 1111 in binary form. Each bit can have one of two values 0 or 1. Therefore, the total number of patterns of 4 bits will be 2 X 2 X 2 X 2 = 16. In an n-bit system, the total number of patterns will be 2n.. Hence, if n bits are used to represent an unsigned integer value, the range is from 0 to 2n-1, that is, there are 2n different values. In case of a signed integer, the most significant (left most) bit is used to represent a sign. Hence, half of the 2n patterns are used for positive values and the other half for negative values. The range of positive values is from 0 to 2n-1-1 and the range of negative values is from –1 to –2n-1. In a 4-bit system, the range of signed integers is from –8 to +7.