Lecture3 Chapter1 - Signed Numbers, Subtraction of Signed Numbers Using Complements
Lecture3 Chapter1 - Signed Numbers, Subtraction of Signed Numbers Using Complements
Numbers
Lecture3- Study Signed Numbers, Perform
Subtraction using Complements
Engr. Arshad Nazir, Asst Prof
Dept of Electrical Engineering
EE-223 Digital Logic Design Spring 2024 SEECS 1
Objectives
• Study Signed Numbers
• Perform Subtraction of Signed Numbers using
Complements
MSB
Magnitude
Sign
Magnitude
0 denotes + MSB
1 denotes -
Signed Magnitude 1 1 1 1 0 1 1 0
Negative
Convention 0 0 0 0 1 0 1 0 Positive
• The signed magnitude convention uses the left-most bit to represent the sign
(0 for positive and 1 for negative).
➢ The user determines whether the number is signed or unsigned
➢ If the binary number is signed, then the leftmost bit represents the sign
and the rest of the bits represent the number
➢ If the binary number is unsigned then the leftmost bit is the most
significant bit of the number
➢ For example:
o 01001 can be considered as 9 (unsigned binary) or a +9 because the left
most bit is zero.
o On the other hand, the string of bits 11001 represents binary
equivalent of 25 when considered as unsigned number or as –9 when
considered as signed number
EE-223 Digital Logic Design Spring 2024 5
Signed Complement System
• The Signed Complement System negative number is indicated by its
complement (Complement of positive number)
➢ Positive numbers always start with 0 (plus), its complement
(representing negative number) will always start with 1
➢ Signed complement system can use either 1’s complement or 2’s
complement.
➢ For example:
o +9 is represented only as 00001001 but –9 can be represented
as:
✓11110110 Signed 1’s complement representation
✓11110111 Signed 2’s complement representation
0011
0100
0101
0110
0111
–3
–4
-31