Representing and manipulating data in computers
Representing and manipulating data in computers

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

Free course

Representing and manipulating data in computers

8.2 The NOT operation

The NOT operation (note that, as with all logic operators, NOT is always written in capital letters) acts bit by bit on a single binary word according the following rules:

NOT 0 = 1

NOT 1 = 0

In other words, all the 1s in the word are changed to 0s and all the 0s are changed to 1s. Hence, for example,

NOT 1101 1011 = 0010 0100

As you saw earlier, the term complement or 1's complement is sometimes used for the result of the NOT operation. In fact, you carried out the NOT operation as your first step in forming the 2's complement of a binary integer.

Another term which is used for the NOT operation, especially in electronics, is ‘inversion’.


Take your learning further

Making the decision to study can be a big step, which is why you'll want a trusted University. The Open University has 50 years’ experience delivering flexible learning and 170,000 students are studying with us right now. Take a look at all Open University courses.

If you are new to University-level study, we offer two introductory routes to our qualifications. You could either choose to start with an Access module, or a module which allows you to count your previous learning towards an Open University qualification. Read our guide on Where to take your learning next for more information.

Not ready for formal University study? Then browse over 1000 free courses on OpenLearn and sign up to our newsletter to hear about new free courses as they are released.

Every year, thousands of students decide to study with The Open University. With over 120 qualifications, we’ve got the right course for you.

Request an Open University prospectus371