Skip to content

Data Representation | GCSE - Wyatt's Notes

Computers store everything as binary (base 2) — sequences of 0s and 1s. The key insight is that a single binary digit (bit) can represent two states (on/off, true/false), and by combining bits, you can represent any number, letter, image, or sound. Eight bits (a byte) can represent 256 different values — enough for a character or a small number.

Why binary? Electronic circuits have two stable states: voltage high or voltage low. This maps directly to 1 and 0. More complex representations (e.g., base 10) would require circuits with many stable states, which are harder to build reliably. Binary is also simple for logic gates: AND, OR, NOT operations are straightforward to implement in hardware.

Two’s complement intuition: To represent negative numbers, computers use two’s complement. The most significant bit indicates the sign (0 = positive, 1 = negative). To negate a number, flip all bits and add 1. This system is elegant because addition and subtraction work identically for positive and negative numbers — no special case logic is needed.

Info: Board Coverage AQA Paper 1 | Edexcel Paper 1 | OCR J277 Paper 1 | WJEC Unit 1

Computers use binary (base 2), which has only two digits: 0 and 1. Each binary digit is called a bit (binary digit).

A group of 8 bits is called a byte.

Bit position1286432168421
Power of 2272^7262^6252^5242^4232^3222^2212^1202^0

Why binary? Digital circuits are built from transistors, which have two states: on (high Voltage) and off (low voltage). These two states map to 1 and 0. Binary arithmetic can be Implemented with simple logic gates (AND, OR, NOT), making hardware design tractable.

Binary to denary: Add the values of the positions where there is a 1.

Worked Example. Convert 11010110 to denary.

128+64+16+4+2=214128 + 64 + 16 + 4 + 2 = 214

Worked Example. Convert 01011101 to denary.

64+16+8+4+1=9364 + 16 + 8 + 4 + 1 = 93

Denary to binary: Find the largest power of 2 that fits, subtract, and repeat.

Worked Example. Convert 105 to binary.

105 - 64 = 41$$41 - 32 = 9$$9 - 8 = 1$$1 - 1 = 0.

Binary: 1101001.

In 8 bits: 01101001.

Alternative method: repeated division by 2. Divide the number by 2 repeatedly and record the Remainders. Read the remainders from bottom to top.

Worked Example. Convert 214 to binary.

214/2=107214 / 2 = 107 r 0 107/2=53107 / 2 = 53 r 1 53/2=2653 / 2 = 26 r 1 26/2=1326 / 2 = 13 r 0 13/2=613 / 2 = 6 r 1 6/2=36 / 2 = 3 r 0 3/2=13 / 2 = 1 r 1 1/2=01 / 2 = 0 r 1

Reading bottom to top: 11010110.

UnitNumber of bytes
1 Kilobyte (KB)210=10242^{10} = 1024 bytes
1 Megabyte (MB)220=10485762^{20} = 1048576 bytes
1 Gigabyte (GB)2302^{30} bytes
1 Terabyte (TB)2402^{40} bytes