Subscribe to our YouTube channel for the latest videos, updates, and tips.


Subtraction by 2’s Complement

With the help of subtraction by 2’s complement method we can easily subtract two binary numbers.


The operation is carried out by means of the following steps:

(i) At first, 2’s complement of the subtrahend is found.

(ii) Then it is added to the minuend.

(iii) If the final carry over of the sum is 1, it is dropped and the result is positive.

(iv) If there is no carry over, the two’s complement of the sum will be the result and it is negative.


The following examples on subtraction by 2’s complement will make the procedure clear:

Evaluate:

(i) 110110 - 10110

Solution:

The numbers of bits in the subtrahend is 5 while that of minuend is 6. We make the number of bits in the subtrahend equal to that of minuend by taking a `0’ in the sixth place of the subtrahend.

Now, 2’s complement of 010110 is (101101 + 1) i.e.101010. Adding this with the minuend.


                          1     1 0 1 1 0      Minuend

                          1     0 1 0 1 0      2’s complement of subtrahend

   Carry over 1       1     0 0 0 0 0      Result of addition

After dropping the carry over we get the result of subtraction to be 100000.


(ii) 10110 – 11010

Solution:

2’s complement of 11010 is (00101 + 1) i.e. 00110. Hence

                                  Minued -          1 0 1 1 0

   2’s complement of subtrahend -          0 0 1 1 0

                    Result of addition -          1 1 1 0 0

As there is no carry over, the result of subtraction is negative and is obtained by writing the 2’s complement of 11100 i.e.(00011 + 1) or 00100.

Hence the difference is – 100.


(iii) 1010.11 – 1001.01

Solution:

2’s complement of 1001.01 is 0110.11. Hence

                                Minued -          1 0 1 0 . 1 1

2’s complement of subtrahend -           0 1 1 0 . 1 1

                           Carry over      1     0 0 0 1 . 1 0

After dropping the carry over we get the result of subtraction as 1.10.


(iv) 10100.01 – 11011.10

Solution:

2’s complement of 11011.10 is 00100.10. Hence

                                  Minued -          1 0 1 0 0 . 0 1

   2’s complement of subtrahend -          0 1 1 0 0 . 1 0

                    Result of addition -          1 1 0 0 0 . 1 1

As there is no carry over the result of subtraction is negative and is obtained by writing the 2’s complement of 11000.11.

Hence the required result is – 00111.01.

Binary Numbers

  • Decimal Number System
  • Why Binary Numbers are Used
  • Binary to Decimal Conversion
  • Conversion of Numbers
  • Hexa-decimal Number System
  • Conversion of Binary Numbers to Octal or Hexa-decimal Numbers
  • Octal and Hexa-Decimal Numbers
  • Signed-magnitude Representation
  • Radix Complement
  • Diminished Radix Complement
  • Arithmetic Operations of Binary Numbers





From Subtraction by 2s Complement to HOME PAGE




Didn't find what you were looking for? Or want to know more information about Math Only Math. Use this Google Search to find what you need.



New! Comments

Have your say about what you just read! Leave me a comment in the box below. Ask a Question or Answer a Question.




Share this page: What’s this?

Recent Articles

  1. Calculating Profit Percent and Loss Percent | Profit and Loss Formulas

    Jun 12, 25 12:48 PM

    In calculating profit percent and loss percent we will learn about the basic concepts of profit and loss. We will recall facts and formula while calculating profit percent and loss percent. Now we wil

    Read More

  2. Word Problems on Profit and Loss Worksheet |Cost Price |Selling Price

    Jun 11, 25 04:26 PM

    Word Problems on Profit and Loss Worksheet
    In word problems on profit and loss worksheet you will get different types of problems on cost price and selling price, profit and loss, calculating profit o loss, calculating selling price and cost p…

    Read More

  3. Round off to Nearest 1000 |Rounding Numbers to Nearest Thousand| Rules

    Jun 11, 25 03:12 PM

    Round off to Nearest 1000
    Round off to nearest 1000 is discussed here. While rounding off to the nearest 1000, if the digit in the hundreds place is between 0 – 4 i.e., < 5, then the hundreds place is replaced by ‘0’. If the d…

    Read More

  4. Round off to Nearest 100 | Rounding Numbers To Nearest Hundred | Rules

    Jun 11, 25 03:13 AM

    Round off to Nearest 100
    While rounding off to the nearest hundred, if the digit in the tens place is between 0 – 4 i.e. < 5, then the tens place is replaced by ‘0’. If the digit in the units place is equal to or >5, then the…

    Read More

  5. Round off to Nearest 10 |How To Round off to Nearest 10?|Rounding Rule

    Jun 10, 25 05:36 PM

    Rounding to the Nearest 10
    Round off to nearest 10 is discussed here. Rounding can be done for every place-value of number. To round off a number to the nearest tens, we round off to the nearest multiple of ten. A large number…

    Read More