Binary Addition
Binary Addition
S.Kavitha
Head & Assistant Professor
Department of Computer Science
Sri Sarada Niketan College of Science for
Women,Karur.
BINARY ADDITION
• Conceptually similar to decimal addition
• Example: Add the binary numbers 1010 and 11
(carry)
1
1 0 1 0
+ 1 1
1 1 0 1
TEST
1 0 0 1 1 0
BINARY SUBTRACTION
Example: Subtract binary number 101 from 1011
(borrow)
01
1 0 1 1
- 1 0 1
0 1 1 0
TEST
01
0 10 1 0
1 0 1 0 1
- 1 1
0 1 1 1
BINARY MULTIPLICATION
1 1 1
1st partial product
0 0 0
2nd partial product
1 1 1
3rd partial product
1 0 0 0 1 1
Product
111 x 101 can also be calculated: 111 + 111 + 111 + 111 + 111
TEST
Multiply the binary numbers 101 and 100.
1 0 1
x 1 0 0
0 0 0
0 0 0
1 0 1
1 0 1 0 0