9s complement and 10s complement | Subtraction

💡
Key learnings:
  • 9’s Complement Definition: 9’s complement is defined as subtracting each digit of a decimal number from 9.
  • 10’s Complement Procedure: To find the 10’s complement, add 1 to the 9’s complement of the number.
  • 9’s Complement Subtraction: This method involves adding the 9’s complement of the number you are subtracting to the other number and adjusting for any carry.
  • 10’s Complement Subtraction: Similar to 9’s complement, but it uses the 10’s complement and discards the carry to find the result.
  • Handling the Carry: The presence or absence of a carry affects the final result in both 9’s and 10’s complement subtractions, determining if the result should be positive or taken as the complement.

Before delving into 9’s and 10’s complements, it’s important to understand their purpose. These methods simplify arithmetic operations in digital systems. This article will cover the following topics:

  1. 9’s complement
  2. 10’s complement
  3. 9’s complement subtraction
  4. 10’s complement subtraction

Now first of all let us know what 9’s complement is and how it is done. To obtain the 9’s complement of any number we have to subtract the number with (10n – 1) where n = number of digits in the number, or in a simpler manner we have to divide each digit of the given decimal number with 9. The table given below will explain the 9’s complement more easily.

Decimal digit9s complement
09
18
27
36
45
54
63
72
81
90

Now coming to 10’s complement, it is relatively easy to find out the 10’s complement after finding out the 9’s complement of that number. We have to add 1 with the 9’s complement of any number to obtain the desired 10’s complement of that number. Or if we want to find out the 10’s complement directly, we can do it by following the following formula, (10n – number), where n = number of digits in the number. An example is given below to illustrate the concept of obtaining 10’s complement.

Let us take a decimal number 456, 9’s complement of this number will be

10’s complement of this no

9’s complement subtraction
Let’s examine this subtraction method through an example.

A = 215
B = 155
We want to find out A-B by 9’s complement subtraction method

First we have to find out 9’s complement of B

Now we have to add 9’s complement of B to A

The left most bit of the result is called carry and is added back to the part of the result without it

Another different type of example is given
A = 4567
B = 1234
We need to find out A – B
9’s complement of B
8765
Adding 9’s complement of B with A

Adding the carry with the result we get
3333
Now the answer is – 3333
Note: If there is no carry, the answer is the negative of the 9’s complement of the result.

Subtraction by 10’s complement
Again we will show the procedure by an example
Taking the same data
A = 215
B = 155
10’s complement of B = 845
Adding 10’s complement of B to A

In this case the carry is omitted
The answer is 60
Taking the other example
A = 4567
B = 1234
10’s complement of B = 8766
Adding 10’s complement of B with A

To get the answer the carry is ignored
So, the answer is – 3333
NB: If there is a carry then the answer is – (10’s complement of the sum obtained)

Want To Learn Faster? 🎓
Get electrical articles delivered to your inbox every week.
No credit card required—it’s 100% free.

About Electrical4U

Electrical4U is dedicated to the teaching and sharing of all things related to electrical and electronics engineering.

Leave a Comment