One's Complement
 Table of Contents

# One's Complement

The one's complement is quite useful when a computer tries to subtract binary numbers since it can perform subtraction without borrowing. Subtraction requires the two's complement, but first we have to understand what the one's complement is.

## How to find the ones complement

You can find the ones complement for any binary number you are given quite easily. Let's say your number 11001 (25 in decimal) you simply take a number with the same amount of significant digits and put a one in every column then you subtract .

So our case would be:

11111 - 11001 = 00110

This is the arithmetic way to do it. But there is a much easier way also.

### The Trick

There is obviously a much easier way to find the ones complement. You can simply switch all the ones to zeros and vice versa.

Because of this trick, the ones complement is sometimes just called the inverse or the negation.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License