Skip to content

Computers store all data as binary (base-2) - patterns of 0s and 1s.

Definition
Binary is a number system using only two digits: 0 and 1. Each digit position represents a power of 2.
Key Point
Place Values (8-bit):
Bit position76543210
Value (2^n)1286432168421
Worked Example
Worked Example: Binary to Denary Conversion

Convert 10110101 to denary:
Value1286432168421
Bit10110101
Calculation: 128 + 32 + 16 + 4 + 1 = 181

Answer: 10110101 in binary = 181 in denary
Worked Example
Worked Example: Denary to Binary Conversion

Convert 157 to binary:

Method: Repeatedly divide by 2, note remainders.
Division stepQuotientRemainder
157 ÷ 2781
78 ÷ 2390
39 ÷ 2191
19 ÷ 291
9 ÷ 241
4 ÷ 220
2 ÷ 210
1 ÷ 201
Read remainders bottom to top: 10011101

Answer: 157 in denary = 10011101 in binary