Skip to main content
EnglandComputer ScienceSyllabus dot point

How are numbers represented in binary and hexadecimal, including negatives, and how is binary arithmetic performed?

Data representation of numbers: converting between binary, denary and hexadecimal, representing negative numbers with sign and magnitude and two's complement, binary addition and subtraction, and detecting overflow.

An Eduqas Component 2 answer on number representation: converting between binary, denary and hexadecimal, representing negative numbers with sign and magnitude and two's complement, binary addition and subtraction, and detecting overflow.

Generated by Claude Opus 4.814 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

Eduqas wants fluent conversion between binary, denary and hexadecimal, representation of negative numbers in sign and magnitude and two's complement, binary addition and subtraction, and detection of overflow. This is a calculation-heavy dot point assessed without a calculator, so shown working is essential.

The answer

Binary, denary and hexadecimal

Representing negative numbers

Binary arithmetic and overflow

Examples in context

Memory addresses and colour values are written in hexadecimal because it is compact (the colour #FF8000 is three bytes). Two's complement is used inside every processor so one adder circuit can do both addition and subtraction, linking this directly to the logic-gate adders from Component 1. Overflow detection matters in real systems: an unchecked overflow can crash software or corrupt data. This dot point is the foundation for floating-point representation (next), which uses two's complement for both its mantissa and exponent.

Try this

Q1. Convert 1100 01101100\,0110 to denary. [1 mark]

  • Cue. 128+64+4+2=198128 + 64 + 4 + 2 = 198.

Q2. Represent −12-12 in 8-bit two's complement. [2 marks]

  • Cue. +12=0000 1100+12 = 0000\,1100; invert to 1111 00111111\,0011; add 1 to get 1111 01001111\,0100.

Q3. Convert the denary number 174174 to hexadecimal. [1 mark]

  • Cue. 174÷16=10174 \div 16 = 10 remainder 1414, giving A\text{A} then E\text{E}, so AE\text{AE} (or 1010 1110→AE1010\,1110 \to \text{AE}).

Exam-style practice questions

Practice questions written in the style of WJEC Eduqas exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Eduqas 20195 marksUsing 8-bit two's complement, represent −18-18 in binary, and add it to the 8-bit two's complement representation of +45+45, showing your working and interpreting the result.
Show worked answer →

Represent −18-18 (up to 3): start with +18=0001 0010+18 = 0001\,0010. Invert all bits: 1110 11011110\,1101. Add 1: 1110 11101110\,1110. So −18=1110 1110-18 = 1110\,1110.

+45=0010 1101+45 = 0010\,1101.

Add (up to 2):

  0010 1101   (+45)
+ 1110 1110   (-18)
-----------
  0001 1011   (carry out of the 8th bit is discarded)

The 8-bit result is 0001 1011=+270001\,1011 = +27, correct since 45+(−18)=2745 + (-18) = 27. Markers reward the correct two's complement of −18-18 (invert and add 1), the binary addition, and discarding the final carry to read +27+27.

Eduqas 20215 marksConvert the hexadecimal number 3C\text{3C} to denary and to binary, and convert the denary number 214214 to hexadecimal, showing your method.
Show worked answer →

Hex to denary (up to 2): 3C\text{3C} has digits 33 and C\text{C} (=12=12). Value =3×16+12=48+12=60= 3 \times 16 + 12 = 48 + 12 = 60.

Hex to binary (up to 1): each hex digit maps to four bits, so 3=00113 = 0011 and C=1100\text{C} = 1100, giving 0011 11000011\,1100.

Denary to hex (up to 2): 214÷16=13214 \div 16 = 13 remainder 66. 13=D13 = \text{D} and 6=66 = 6, so reading quotient then remainder gives D6\text{D6}. Check: 13×16+6=208+6=21413 \times 16 + 6 = 208 + 6 = 214. Markers reward the place-value method, the four-bit grouping for binary, and the divide-by-16 method with correct letter digits.

Related dot points

Sources & how we know this