Lecture 3
Lecture 3
Lecture 3
Outline
• Binary Addition, Subtraction and
Multiplication
• Conversion of signed fractions from binary
to decimal and vice versa
• Subtraction with Complements
Carry 0010110
Number A 1001011
Number B 0101011
Sum 1110110
EE227 - DLD Course Instructor : Muhammad Sajid Iqbal 3
Binary Subtraction
• Let’s illustrate the binary addition with an
example
• Subtract 1010 from 1100
Borrow 0 0 10 0
Number A 1 1 0 0
Number B 1 0 1 0
Difference 0 0 1 0
EE227 - DLD Course Instructor : Muhammad Sajid Iqbal 4
Binary Multiplication
• Let’s illustrate the binary addition with an
example
• Multiply 1011 with 101
+001011
x000101
Partial Product
+001011
Partial Product
+000000
Partial Product
+101100
Final Product
+110111
EE227 - DLD Course Instructor : Muhammad Sajid Iqbal 5
Practice Problem 1
i. Add the signed (10110111)2 and
(01010111)2 and verify that answer is
correct Answer is (14) 10