Why do computers use the binary number system, and how do you convert between binary and denary?
The binary and denary number systems, why computers store data in binary, the units of data capacity, and converting whole numbers between binary and denary.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on binary and denary numbers, covering why computers use binary, bits bytes and the units of data capacity, place value in base 2, and converting whole numbers between binary and denary in both directions.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this topic is asking
WJEC wants you to know why computers store everything in binary, the units used to measure data capacity, and how to convert whole numbers between binary (base 2) and denary (base 10). This is the foundation of the Data representation and data types content in Unit 1 of WJEC GCSE Computer Science (3500).
Why computers use binary
A single binary digit is called a bit (short for binary digit). Because one bit can only be or , it can store just two different values; to store more, you group bits together.
Units of data capacity
So bytes, , and . The number of different values that bits can store is : one bit stores values, two bits store , and a full byte of bits stores different values, from to .
Place value in binary
Converting binary to denary
To convert a binary number to denary, write the place values above the bits and add up every place value that has a beneath it.
Converting denary to binary
The reliable method is to keep subtracting the largest power of that fits, writing a in that column and a in any column you skip. An alternative is repeated division by , writing the remainders and reading them from bottom to top, but the subtraction method is usually quicker for the small numbers in the exam.
Try this
Q1. Convert to denary. [2 marks]
- Cue. .
Q2. State how many different values can be stored in bits. [1 mark]
- Cue. different values.
Exam-style practice questions
Practice questions written in the style of WJEC exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
WJEC-style Unit 12 marksConvert the binary number into denary. Show your working.Show worked answer →
A Unit 1 conversion question. Write the place values above each bit from the right: . Line them up with (1 mark for the correct place values). Add the values where a appears: (1 mark for the correct total). Markers reward the place-value method and the final answer. A common error is to read the bits left to right with the wrong place values, or to include the column when its bit is .
WJEC-style Unit 13 marksExplain why computers use the binary number system to represent data, and state how many bits are in one byte.Show worked answer →
A Unit 1 explain question. Computers are built from electronic components such as transistors that have two stable states, on and off (or high and low voltage) (1 mark). These two states map directly onto the two binary digits and , so binary is a reliable and simple way to store and process data with electronic circuits (1 mark). One byte contains bits (1 mark). Markers reward the link between two physical states and two binary digits, plus the value . A common error is to say computers use binary because it is faster, which misses the hardware reason.
Related dot points
- The hexadecimal number system, why hexadecimal is used as a shorthand for binary, and converting between hexadecimal, binary and denary.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on hexadecimal, covering the base 16 number system, why hexadecimal is a convenient shorthand for binary, and converting between hexadecimal, binary and denary in both directions with worked examples.
- Adding two binary numbers using the carry rules, the meaning of overflow, and using arithmetic (binary) shifts to multiply and divide by powers of two.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on binary arithmetic, covering adding two binary numbers with the carry rules, the meaning and cause of overflow, and using left and right arithmetic shifts to multiply and divide a binary number by powers of two.
- Representing signed (negative and positive) integers in binary using the sign and magnitude method and the two's complement method, and converting between them.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on representing signed integers in binary, covering the sign and magnitude method, the two's complement method, how to find a two's complement number, and the advantages of two's complement for arithmetic.
- Representing characters in binary using character sets, the ASCII and Unicode character sets, and the relationship between a character, its character code and the number of bits needed.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on representing text, covering character sets, the ASCII character set and its size, the Unicode character set and why it was introduced, character codes, and how the number of bits limits the number of characters.
- The need for secondary storage, the characteristics of magnetic, optical and solid-state storage, and calculating storage requirements and capacity.
A focused answer to the WJEC GCSE Computer Science Unit 1 content on secondary storage, covering why secondary storage is needed, the characteristics, advantages and disadvantages of magnetic, optical and solid-state storage, and calculating how many files of a given size fit in a given storage capacity.