Professional Documents
Culture Documents
DRO-Lesson 09 - Negative Numbers Representation Part 3fchs
DRO-Lesson 09 - Negative Numbers Representation Part 3fchs
DRO-Lesson 09 - Negative Numbers Representation Part 3fchs
Negative numbers
representation
Part - 3
Lesson 9
Learning Objectives
• At the end of the lesson student should be
able to
– Convert decimal number into 8 bits 2’s
complement representation
– Convert number in 2’s complement format to
decimal
Two’s Complement Representation
Ex 3
Complemented: 10101111
Two’s Complement Representation
Ex 3
So: -2610 = 111001102
(in 8-bit 2's complement form)
Two’s Complement Representation
32-bit example:
+9
0 000 0000 0000 0000 0000 0000 0000 1001
-9
1 111 1111 1111 1111 1111 1111 1111 0111
Step 1: Determine if number is positive or
negative:
11101100 2
Ex 1:
Ex 2
Ex 3:
Ex 3: