Chapter 1

Data Representation

Binary, bits and bytes, and converting binary to denary — with an interactive exercise.

Data Representation: computers store all data in binary (0s and 1s).

A single 0 or 1 is a bit; 8 bits = 1 byte. To convert binary to denary, add the place values (128, 64, 32, 16, 8, 4, 2, 1): so binary 1010 = 8 + 2 = 10. Hexadecimal is a shorter way to write binary.

Remember

  • 1 bit = 0 or 1 · 8 bits = 1 byte.
  • Binary place values: 128, 64, 32, 16, 8, 4, 2, 1.

Stuck on this topic? A verified JomKelas tutor can walk you through it.

Find a verified tutor