core Estimated learning time: 10 h

S5-2.1 Data Representation & Computer Arithmetic

You can represent fixed and floating point numbers to IEEE standards and execute the addition, subtraction, Booth multiplication and restoring and non-restoring division algorithms.

Booth's algorithm is the unit's centrepiece because it shows arithmetic as hardware rather than mathematics - it multiplies signed numbers by recognising runs of ones and replacing many additions with one subtraction and one addition. Work the algorithms on paper with real bit patterns; reading them never sticks. IEEE 754 matters beyond the exam: it is why floating point comparisons betray you in every language you will ever use.

Work through these

  • Basic structure of computers and functional units

    The map of the machine before any detail: what the units are and how they talk. Come back to this item when a later topic feels like it is floating free of anything physical.

  • Fixed point representation of numbers

    How numbers live in a register, and the conventions that decide what a bit pattern means. Everything in the next four items depends on getting this straight first.

  • Digital arithmetic algorithms for addition and subtraction

    The arithmetic you already know, done the way hardware does it. Working an example on paper with real bit patterns is the difference between recognising the algorithm and being able to use it.

  • Multiplication using Booth's algorithm

    The centrepiece of this topic, because it shows arithmetic as hardware rather than mathematics: it spots runs of ones and replaces many additions with one subtraction and one addition. Work it by hand or it will not stick.

  • Division using restoring and non-restoring algorithms

    Two ways to divide, differing in what they do when the trial subtraction goes negative. The non-restoring version is faster for the reason its name gives, and tracing both on the same numbers makes that obvious.

  • Floating point representation and the IEEE standards

    Why floating point comparisons betray you in every language you will ever write in. This item has a life well beyond the examination, so it is worth more than the two lines it takes up here.

Sign in to keep your progress.

Free resources

Links last checked 30 Aug 2026.

Stuck here?

Ask a mentor. A real person answers, and they can see exactly which topic you're on. Usually within a couple of working days.

Checking your session…

Topics shown in module order.