Converting a negative denary number to two's complement
Write the positive value in 8-bit binary, flip every bit, then add 1. Example: 5 is 00000101, flip to 11111010, add 1 to get 11111011 (-5).
Understanding Converting a negative denary number to two's complement in IGCSE Computer Science Paper 1
What it does: 11111011 has 1s in the 128, 64, 32, 16, 8, 2 and 1 places. The 128 place counts as -128, so the total is -5. Flipping 00001010 gives 11110101. Adding 1 gives 11110110, which is -10 in 8-bit two's complement. Always start with the positive number in 8-bit binary. There is no minus sign in binary, so the flip and add 1 steps create the negative. Flip first (0 becomes 1, 1 becomes 0), then add 1. Adding 1 first gives the wrong order and the wrong answer. 3 is 00000011. Flip to get 11111100, then add 1 to get 11111101. 11111100 is the inverted value only, which is -4.
Common mistakes: Flipping 00000101 changes every bit (0 to 1, 1 to 0), giving 11111010. The broken line left the second-to-last bit as 1 when it should have flipped to 0, so only some bits were flipped. The first step is to write the positive value in 8-bit binary. 3 is 00000011 (2 + 1). 00000110 is 6, so every step after it would be wrong.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 28–41) and word search (Modules 28–58).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
flip the bits then add 1Fill in the Blanks
Spot the Error
Student with a class code? Join your class →