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.
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 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 to denary. [2 marks]
- Cue. .
Q2. Convert to hexadecimal. [2 marks]
- Cue. ().
Q3. State how a number is negated in two's complement. [1 mark]
- Cue. Invert all the bits, then add .
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 to 8-bit binary and to hexadecimal, showing your method.Show worked answer →
Binary (up to 3 marks): subtract place values . (bit set), (bit set, not), , , . So the set bits are : .
Hexadecimal (up to 2 marks): group the binary into nibbles, , and convert each: , . So (check: ).
Markers reward the correct 8-bit binary and the hexadecimal , with the place-value or nibble method shown.
Eduqas 20196 marksUsing 8-bit two's complement, represent in binary, and show how the subtraction is performed by addition. Give the answer in denary.Show worked answer →
Two's complement of (up to 3 marks): write . Invert all bits to get , then add : . So in 8-bit two's complement.
Subtraction by addition (up to 3 marks): . Add : . Discard the carry out of the 8th bit, leaving . So .
Markers reward (invert and add one), the binary addition, discarding the final carry, and the answer .
Related dot points
- Logic gates and Boolean algebra: the gates AND, OR, NOT, NAND, NOR, XOR and their truth tables, Boolean expressions, the laws of Boolean algebra, De Morgan's laws, and universal gates.
An Eduqas A-Level Electronics answer on logic gates and Boolean algebra: the gates AND, OR, NOT, NAND, NOR and XOR with their truth tables, writing and reading Boolean expressions, simplifying with the laws of Boolean algebra and De Morgan's laws, and the universal NAND and NOR gates.
- Combinational logic design: deriving a Boolean expression from a truth table (sum of products), minimising with Karnaugh maps, and standard building blocks (half and full adders, decoders, encoders, multiplexers).
An Eduqas A-Level Electronics answer on combinational logic design: deriving a sum-of-products Boolean expression from a truth table, minimising it with a Karnaugh map, and the standard building blocks: half and full adders, decoders, encoders and multiplexers.
- Analogue-to-digital conversion: sampling, quantisation and resolution, the sampling theorem and aliasing, quantisation error, and the trade-off between resolution and data rate.
An Eduqas A-Level Electronics answer on analogue-to-digital conversion: sampling a continuous signal, quantisation and resolution, the Nyquist sampling theorem and aliasing, quantisation error, and the trade-off between resolution, sampling rate and the data rate produced.
- Microcontroller architecture: the CPU, memory and input/output ports, digital input and output pins, pull-up and pull-down resistors, and the analogue-to-digital converter and PWM peripherals.
An Eduqas A-Level Electronics answer on microcontroller architecture and interfacing: the CPU, memory and input/output ports, digital input and output pins with pull-up and pull-down resistors, and the built-in peripherals (analogue-to-digital converter, PWM, timers) that connect the microcontroller to the real world.
Sources & how we know this
- Eduqas GCE AS/A Level Electronics specification (A410QS) — WJEC Eduqas (2017)