How to Subtract Unsigned Numbers Using 9’s Complement

What is an Unsigned Number?

An unsigned number is a number that does not inherently store information about its sign (positivity or negativity). Instead, external symbols like “\(\mathsf{+}\)” or “\(\mathsf{-}\)” are used to indicate the sign. If no symbol is provided, the number is assumed to be positive by default.

How to Subtract Unsigned Decimal Numbers Using the 9’s Complement Method

The diminished radix complement method converts subtraction into addition, simplifying the process, especially in digital systems. The general approach is to add the complement of the subtrahend to the minuend. Here’s a step-by-step guide for a number system with radix (base) 10:

  1. Make sure that the minuend and the subtrahend have the same number of digits; if not, pad 0s to the left to make them equal.
  2. Compute the 9’s complement of the subtrahend.
    • The 9’s complement is obtained by subtracting each digit of the subtrahend from 9.
  3. Add this complement to the minuend. The result may or may not produce an end-carry (overflow) bit.
    • If there is an end-carry, discard it. Add 1 to the result to get the positive difference.
    • If there is no end-carry, the result is negative. Compute the 9’s complement of this sum again to find the magnitude, and prefix it with a “\(\mathsf{-}\)” symbol. This occurs when the minuend is smaller than the subtrahend.

Example 1: Perform 67-20 using 9’s complement

this image shows the subtraction of decimal numbers (67-20) using 9's complement method

Example 2: Perform 977-48 using 9’s complement

this image shows the subtraction of decimal numbers (977-48) using 9's complement method

Example 3: Perform 6-13 using 9’s complement

this image shows the subtraction of decimal numbers (6-13) using 9's complement method

Example 4: Perform 10-147 using 9’s complement

this image shows the subtraction of decimal numbers (10-147) using 9's complement method