1-20
Now lets look at the number system that most computers use, the binary system. Just as the decimal
system, had the nines (Rs-1) and tens (Rs) complement, the binary system has two types of complement
methods. These two types are the ones (Rs-1) complement and the twos (Rs) complement. The binary
system Rs-1 complement is the difference between the binary number and all 1s. The Rs complement is
the difference between the binary number and the next higher power of 2.
Lets look at a quick and easy way to form the Rs-1 complement. To do this, change each 1 in the
original number to 0 and each 0 in the original number to 1 as has been done in the example below.
10110112
1001002 Rs-1 complement
There are two methods of achieving the Rs complement. In the first method we perform the Rs-1
complement and then add 1. This is much easier than subtracting the original number from the next higher
power of 2. If you had subtracted, you would have had to borrow.
Saying it another way, to reach the Rs complement of any binary number, change all 1s to 0s and all
0s to 1s, and then add 1.
As an example lets determine the Rs complement of 101011012:
The second method of obtaining the Rs complement will be demonstrated on the binary number
001011011002.
Step 1Start with the LSD, working to the MSD, writing the digits as they are up to and including
the first one.