← Computer Science

Binary and number systems

Computers store everything as binary. This unit covers denary, binary and hexadecimal, how to convert between them, why hex is used, and how to add two 8-bit binary numbers and spot overflow.

Slide 1 / 4

Three number systems

One value, three number systems Denary Binary Hexadecimal base 10 base 2 base 16 182 10110110 B6 1 bit = 0 or 1 · 4 bits = a nibble · 8 bits = a byte
  • Denary is base 10. It uses the digits 0 to 9 and is the system we use every day.
  • Binary is base 2. It uses only 0 and 1, because a computer's circuits have two states: off and on.
  • Hexadecimal is base 16. It uses 0 to 9, then A to F for 10 to 15.
  • One binary digit is a bit. Four bits make a nibble. Eight bits make a byte.

Check you've got it

0/4

1. What is the denary value of the 8-bit binary number 01101010?

2. What is the binary number 10110110 in hexadecimal?

3. Why is hexadecimal often used instead of binary?

4. Two numbers are added in an 8-bit register. The true answer is 270. What happens?

Practise exam-style questions on this

Type your answer, see your mark against the mark scheme in seconds. Free, 5 a day.

Start practising →

Teaching this topic?

Mark your whole class's answers and see who's stuck, for £19 a month.

See the class plan →

Free revision content. Multiple-choice answers are marked instantly. Written answers are marked by AI on /free-mark. Independent, not endorsed by Cambridge International.