levo

Data Types, Characters and Floating Point

Truncation, rounding and accuracy

  • 3 things to know
  • Component 2
Start revising · £5/month

Overview

Absolute error, relative error and danger of subtracting two nearly equal floating point numbers.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Define truncation.

Key term

Define rounding.

Numbers

Truncate the binary fraction 0.1011101 to four places after the point and give the denary value.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Define truncation.

    Model answer

    Truncation cuts off the digits beyond the available precision. The digits that remain are left exactly as they were.

  2. 2

    Define rounding.

    Model answer

    Rounding is the adjustment of the last digit kept according to the first digit discarded. The stored value is the closest representable value to the true one.

  3. 3

    Truncate the binary fraction 0.1011101 to four places after the point and give the denary value.

    Model answer

    Truncation to four places gives 0.1011, which is 0.6875 in denary. The true value 0.1011101 is 0.7265625, so the error is 0.0390625.

  4. 4

    Round the binary fraction 0.1011101 to four places after the point and give the denary value.

    Model answer

    The fifth bit is 1, so the fourth bit rounds up to give 0.1100. The stored value is 0.75 in denary and the error is 0.0234375.

  5. 5

    Which of truncation and rounding is more accurate, and why?

    Model answer

    Rounding is more accurate, because the error is at most half a unit in the last place. Truncation can lose almost a whole unit in the last place.

  6. 6

    Why is truncation still used despite being less accurate?

    Model answer

    Truncation simply discards the surplus bits and needs no extra arithmetic. Speed and simplicity matter in hardware that performs millions of operations.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Data Types, Characters and Floating Point, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.