100% found this document useful (1 vote)
206 views

Addition and Subtraction of Binary Numbers Akash

This document discusses binary addition and subtraction. It provides two examples each of adding and subtracting binary numbers. The rules for binary addition are presented, such as 1+1=10 (with 1 carried). Examples show adding two 5-bit binary numbers and verifying the answer by converting to decimal. Binary subtraction is explained as borrowing from the left column when a column is too small. Examples demonstrate subtracting a 5-bit binary number from another 5-bit number and verifying the answer.

Uploaded by

Akash
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
206 views

Addition and Subtraction of Binary Numbers Akash

This document discusses binary addition and subtraction. It provides two examples each of adding and subtracting binary numbers. The rules for binary addition are presented, such as 1+1=10 (with 1 carried). Examples show adding two 5-bit binary numbers and verifying the answer by converting to decimal. Binary subtraction is explained as borrowing from the left column when a column is too small. Examples demonstrate subtracting a 5-bit binary number from another 5-bit number and verifying the answer.

Uploaded by

Akash
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

ADDITION AND

SUBTRACTION OF BINARY
NUMBERS

PRESENTED BY
AKASH KUMAR CHAUDHARY
COURSE :- B.tech(ECE)
ROLL NO :- 04
SECTION :- A PRESENTED TO
Mr. SAYED ARIF ALI
Associate lecturer
Department of ECE
Binary number
What is binary numbers ?
Addition of binary numbers.
Subtraction of binary
numbers.
Uses of binary numbers.
Binary Addition Rules

Rules:
0+0 =0
0+1 =1
1+0 =1 (just like in decimal)
1+1 = 210 = 102 = 0
with 1 to carry
1 + 1 + 1 = 310 = 112 =
1 with 1 to carry
Binary Addition Example 1
Col 1) Add 1 + 0 = 1
Example 1: Add Write 1
binary 110111 to 11100 Col 2) Add 1 + 0 = 1
Write 1
Col 3) Add 1 + 1 = 2 (10 in binary)
1 1 1 1 Write 0, carry 1
1 1 0 1 1 1 Col 4) Add 1+ 0 + 1 = 2
Write 0, carry 1
+ 0 1 1 1 0 0 Col 5) Add 1 + 1 + 1 = 3 (11 in binary)
Write 1, carry 1
1 0 1 0 0 1 1
Col 6) Add 1 + 1 + 0 = 2
Write 0, carry 1
Col 7) Bring down the carried 1
Write 1
Binary Addition
Verification
You can always check your Verification
answer by converting the 1101112 5510
figures to decimal, doing the +0111002 + 2810
addition, and comparing the 8310
answers.

64 32 16 8 4 2 1
1 0 1 0 0 1 1
1 1 0 1 1 1 = 64 + 16 + 2 +1
+ 0 1 1 1 0 0 = 8310

1 0 1 0 0 1 1
Binary Addition Example 2

Example 2: Verification
Add 1111 to 111010. 1110102 5810
+0011112 + 1510
7310

1 1 1 1 1 64 32 16 8 4 2 1
1 1 1 0 1 0 1 0 0 1 0 0 1
+ 0 0 1 1 1 1 = 64 + 8 +1
= 7310
1 0 0 1 0 0 1
Binary Subtraction
Explanation

In binary, the base unit is 2

So when you cannot subtract, you borrow from the


column to the left.
The amount borrowed is 2.
The 2 is added to the original column value, so you
will be able to subtract.
Binary Subtraction Example 1

Col 1) Subtract 1 0 = 1
Example 1: Subtract Col 2) Subtract 1 0 = 1
binary 11100 from 110011Col 3) Try to subtract 0 1 cant.
Must borrow 2 from next column.
But next column is 0, so must go to
column after next to borrow.
2 1 Add the borrowed 2 to the 0 on the right.
0 0 2 2 Now you can borrow from this column
(leaving 1 remaining).
1 1 0 0 1 1 Add the borrowed 2 to the original 0.
Then subtract 2 1 = 1
- 1 1 1 0 0 Col 4) Subtract 1 1 = 0
Col 5) Try to subtract 0 1 cant.
1 0 1 1 1 Must borrow from next column.
Add the borrowed 2 to the remaining 0.
Then subtract 2 1 = 1
Col 6) Remaining leading 0 can be ignored.
Binary Subtraction Verification

Subtract binary Verification


11100 from 110011: 1100112 5110

1 - 111002 - 2810
2
2310
0 0 2 2
1 1 0 0 1 1 64 32 16 8 4 2 1
- 1 1 1 0 0 1 0 1 1 1
= 16 + 4 + 2 + 1
1 0 1 1 1 = 2310
Binary Subtraction
Example 2

Example 2: Subtract Verification


binary 10100 from 101001 1010012 4110
- 101002 - 2010
2110

0 2 0 2 64 32 16 8 4 2 1
1 0 1 0 0 1 1 0 1 0 1
- 1 0 1 0 0 = 16 + 4 + 1
= 2110
1 0 1 0 1
n k
h a
T o u
y

You might also like