You are on page 1of 8

9’s and 10’s complement

Dr. P. Chandrashekar
Professor
Dept. of ECE

1
9’s complement Subtraction: Smaller
from Larger

1. Determine 9’s complement of the smaller number

2. Add the 9’s complement to the larger number

3. Remove the carry and add it to the result (end around


carry)

2
9’s complement Subtraction
 Regular subtraction 9’s complement subtraction
8 8
- 2 + 7 9’s complement of 2
6 1 5
1
6
 Subtract 13 from 28 using 9’s complement

3
9’s complement Subtraction: Larger
from Smaller
1. Determine 9’s complement of the larger number

2. Add the 9’s complement to the smaller number

3. Take 9’s complement of the result and assign


negative sign

 Subtract 24 from 18 using 9’s complement

4
10’s complement representation

10’s complement of a decimal number that results

when add 1 to the 9’s complement


10’s complement = 9’s complement + 1

5
10’s complement Subtraction: Smaller
from Larger

1. Determine 10’s complement of the smaller number

2. Add the 10’s complement to the larger number

3. Discard the carry

6
10’s complement Subtraction
 Regular subtraction 10’s complement Subtraction
8 8
- 2 + 8 10’s complement of 2
6 1 6 Discard the carry

 Subtract 13 from 28 using 10’s complement

7
10’s complement Subtraction: Larger
from Smaller
1. Determine 10’s complement of the larger number

2. Add the 10’s complement to the smaller number

3. Take 10’s complement of the result and assign


negative sign

Subtract 24 from 18 using 10’s complement.

You might also like