Skip to main content
EnglandElectronicsSyllabus dot point

How are numbers represented in binary and hexadecimal, and how are signed numbers added with two's complement?

Number systems: binary, denary and hexadecimal conversion, binary addition, two's complement for signed numbers, and binary-coded decimal.

An Eduqas A-Level Electronics answer on number systems: converting between binary, denary and hexadecimal, binary addition with carries, two's complement representation of signed numbers and subtraction by addition, and binary-coded decimal for displays.

Generated by Claude Opus 4.813 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 you to convert between binary, denary and hexadecimal, add binary numbers, use two's complement for signed numbers (and subtract by adding), and use binary-coded decimal. This is the number system that all digital and microcontroller work uses.

The answer

Binary, denary and hexadecimal

Binary addition

Two's complement signed numbers

Binary-coded decimal

Examples in context

Number systems underpin every digital and microcontroller topic: hexadecimal writes the contents of registers and memory addresses compactly, binary addition is what the full-adder hardware performs, two's complement is how a processor stores and subtracts signed values, and BCD drives the numeric displays of clocks and meters. The analogue-to-digital converter in the next module produces binary codes that are interpreted exactly this way.

Try this

Q1. Convert the binary number 1011 00101011\,0010 to denary. [2 marks]

  • Cue. 128+32+16+2=178128 + 32 + 16 + 2 = 178.

Q2. Convert 206206 to hexadecimal. [2 marks]

  • Cue. 206=1100 1110=CE206 = 1100\,1110 = \text{CE} (12×16+14=20612 \times 16 + 14 = 206).

Q3. State how a number is negated in two's complement. [1 mark]

  • Cue. Invert all the bits, then add 11.

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 20215 marksConvert the denary number 173173 to 8-bit binary and to hexadecimal, showing your method.
Show worked answer →

Binary (up to 3 marks): subtract place values 128,64,32,16,8,4,2,1128, 64, 32, 16, 8, 4, 2, 1. 173−128=45173 - 128 = 45 (bit set), 45−32=1345 - 32 = 13 (bit set, 6464 not), 13−8=513 - 8 = 5, 5−4=15 - 4 = 1, 1−1=01 - 1 = 0. So the set bits are 128,32,8,4,1128, 32, 8, 4, 1: 173=1010 11012173 = 1010\,1101_2.

Hexadecimal (up to 2 marks): group the binary into nibbles, 1010 11011010\,1101, and convert each: 1010=A1010 = \text{A}, 1101=D1101 = \text{D}. So 173=AD16173 = \text{AD}_{16} (check: 10×16+13=17310 \times 16 + 13 = 173).

Markers reward the correct 8-bit binary 1010110110101101 and the hexadecimal AD\text{AD}, with the place-value or nibble method shown.

Eduqas 20196 marksUsing 8-bit two's complement, represent −20-20 in binary, and show how the subtraction 35−2035 - 20 is performed by addition. Give the answer in denary.
Show worked answer →

Two's complement of −20-20 (up to 3 marks): write +20=0001 0100+20 = 0001\,0100. Invert all bits to get 1110 10111110\,1011, then add 11: 1110 11001110\,1100. So −20=1110 1100-20 = 1110\,1100 in 8-bit two's complement.

Subtraction by addition (up to 3 marks): 35=0010 001135 = 0010\,0011. Add −20-20: 0010 0011+1110 1100=1 0000 11110010\,0011 + 1110\,1100 = 1\,0000\,1111. Discard the carry out of the 8th bit, leaving 0000 1111=150000\,1111 = 15. So 35−20=1535 - 20 = 15.

Markers reward −20=11101100-20 = 11101100 (invert and add one), the binary addition, discarding the final carry, and the answer 1515.

Related dot points

Sources & how we know this