0% found this document useful (0 votes)
203 views

Binary Addition and Subtraction With Examples

Binary addition and subtraction follow similar rules to decimal, but use only two digits, 0 and 1. When adding binary numbers, a carry is generated when the sum is greater than 1. Subtraction is performed by rearranging the numbers if needed so the larger number is the minuend, then subtracting digit-by-digit from right to left while borrowing from the left when needed. Examples show adding 11011 + 10101 equals 110001 and subtracting 11011 from 1101101 equals 1010010.

Uploaded by

Naresh R
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
203 views

Binary Addition and Subtraction With Examples

Binary addition and subtraction follow similar rules to decimal, but use only two digits, 0 and 1. When adding binary numbers, a carry is generated when the sum is greater than 1. Subtraction is performed by rearranging the numbers if needed so the larger number is the minuend, then subtracting digit-by-digit from right to left while borrowing from the left when needed. Examples show adding 11011 + 10101 equals 110001 and subtracting 11011 from 1101101 equals 1010010.

Uploaded by

Naresh R
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Binary Addition and Subtraction With Examples

The binary addition & subtraction is similar to the decimal number system. But the main difference
between these two is, binary number system uses two digits like 0 & 1 whereas the decimal number
system uses digits from 0 to 9 and the base of this is 10. There are some specific rules for the binary
system. Like when we add & subtract binary numbers then we must be very careful while carrying
otherwise borrowing digits because these will occur more frequently.

Binary Addition
Binary addition technique is similar to the normal addition of decimal numbers excluding that as an
alternative value of 10 digits, it carries on a 2 value.
For example, as we compute 7+9 manually, then the answer is 16. So we know that the result has to
write like two digits 1 and 6. The main reason to write down the result like 1 6 is, the addition of 7 + 9 is
greater than the single digit. So the result cannot be denoted through a single digit because the largest
single digit is ‘9’.

Similarly, whenever we would like to sum two binary numbers, only we will have a carry if the product is bigger than 1
because, in binary numbers, 1 is the highest number. The binary addition rules are given in the following truth table of
subtraction.

A B A+B Carry
0 0
0 0
0
0 1 1
1 0
0 1
1 1
1 0
In the above tabular form, the initial three equations are the same for the binary digit number. The
addition of binary numbers step by step is explained in detail. For binary addition take an example of
11011 & 10101.

1 1 1 1 (Carry)
1 1 0 1 1 (27)
(+)1 0 1 0 1 (21)
____________
1 1 0 0 0 0 (48)
Here the step by step binary addition rules is explained below

1 + 1 => 1 0, so 0 with a carry 1


1 + 1 + 0 => 1 0. So 0 with carry 1
1+0+1 => 10 => 0. So 0 with carry-1
1+1+0 => 10 => 10 = 0 with carry-1
1+1+1=> 10+1 => 11= 1 with carry-1
Examples
The binary addition examples are shown in the following figure.

binary-addition
Binary Subtraction: First Method

In subtraction, this is the primary technique. In this method, ensure that the subtracting number must be
from a larger number to smaller, or else this technique won’t work appropriately.

If the minuend is smaller than the subtrahend, then this method is used by just switch their positions and memorize that
the effect will be a -ve number. The binary subtraction rules are given in the following truth table of subtraction.

A B A-B Borrow
0
0 0 0
1
0 1 1
1
0 1 0
0
1 1 0
For example, in the binary subtraction, subtract the subtrahend from minuend. Take an example of
subtrahend (110112) and minuend (11011012). For subtraction, arrange these two like the subtrahend
should be below the minuend. The example of this is given below.

1101101
– 11011
To get the same number of digits in subtrahend, add zeros where it requires.

1101101
– 0011011
________
1010010
In the above binary subtraction example, the subtraction was achieved from the right side to the left side
with the help of tabular form which is shown in the above. Here the step by step binary subtraction rules
is explained below.
If the input 1 1 = 0, then borrow to the next step is 0.

If the input 0 1 = 1 & borrow is 0. So 1 0 = 1 then borrow to the next step is 1.

If the input 1 0 = 0 & borrow is. So 1 1 = 0 then borrow to the next step is 0.

If the input 1 1 = 0 & borrow is 0. So 0 0 = 0 then borrow to the next step is 0.

If the input 0 1 = 1 & borrow is 0. So 1 0 = 1 then borrow to the next step is 1.

If the input 1 0 =1 & borrow is 1. So 1 1 = 0, then borrow to the next step is 0.

Final step, If the input 1 0 = 0 & borrow is 0. So 10 = 1, then borrow to the next step is 0.

So the final result will be 1010010

You might also like