Back

The binary numbering system

Introduction
Any switch can be in one of two positions, off or on. For example, the switch that controls a light in a room can be off or on. The power switch on your computer can be off or on. A mobile phone has a power switch that can be off or on. The basic building block of any computer is the switch. Computers, however, have millions and millions and millions of electronic switches in them, held in components such as RAM or the processor. When you group these switches together in a certain way, you can represent data, such as letters of the alphabet or numbers!

The denary numbering system
The numbering system that we commonly use every day of our lives is known as the denary system. This is because there are ten digits in use. These are 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. We know that the symbol 7 is 'worth more' than the symbol 3. It is not only the size of the number that tells us something about the number, however. It is also the position of each digit relative to any other digits in a number. For example, in the number 268, the 6 is worth a lot more than the 8 because it is to the left of the 8. Similarly, the 2 is worth a lot more than both the 8 and the 6 because it is on the very left of the number. When you learnt to count, you will have used headings to start with, to help you understand that the position of each digit is important to the worth of that digit. Any number e.g. 3892 would have been written down under the headings, as shown here.

ch5d1

This means the number is 'worth' (3 x 1000) + (8 x 100) + (9 x 10) + (2 x 1) which adds up to 3892. Can you use this method to break down the number 4390? Now break down the number 28642. What is the next position on the left after thousands worth? What do you think the next position on the right of the Units is worth? (HINT: It is used to represent the fractional parts of a number).

The binary numbering system
Computers use switches. A switch can be off or on and there are no other possible positions. We can represent switches using the binary numbering system. The off position will be represented by 0 and the on position will be represented by 1. Whilst the denary numbering system had 10 digits, the binary numbering system has only 2 digits, 0 and 1. However, like the denary system, the position of the binary digit (or bit) is important. So for example, the binary number 10101101 means

ch5d2

This means the number is worth (1 x 128) + (0 x 64) + (1 x 32) + (0 x 16) + (1 x 8) + (1 x 4) + (0 x 2) + (1 x 1) which adds up to the denary number 173. Can you use this method to find out what the denary equivalent of 01100100 is? Can you guess what the next position to the left of the 'One Hundred and twenty eights' position is worth? How about the position to the right of the Units position? (HINT: It is used to represent the fractional parts of a binary number. Try to spot a pattern developing in the worth of each position).

Using subscripts
How do you know whether a number is a binary number (sometimes called a 'base two number') or a denary number (sometimes called a base ten number)? For example, is 1000 the denary number 'one thousand' or the binary number equivalent of eight? It makes a big difference because the denary number will be so much larger than the binary one. To make it clear which numbering system is being used, we can add a subscript to a number. For example:

    • 100010112 is a binary number whereas 1000101110 is a denary number.
    • 345210 is a denary number.
    • 1000010 is a denary number.
    • 0110002 is a binary number.
    • 32000010 is a denary number.
    • 011000112 is a binary number.

You don't always see subscripts next to a number. For example, when we use base 10 in our normal lives, we don't write a 10 subscript next to the number. We don't because there is usually no confusion possible. Similarly, if we are only using binary numbers, we will omit the 2 subscript. There are times, however, when we will be using base 10, base 2 and other numbering systems, all at the same time. In these circumstances, we should make clear which numbering system we are using by employing subscripts. 

Back