levo

Data Types, Characters and Floating Point

Converting between real numbers and floating point

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

Overview

Turning a real number into a normalised mantissa and exponent and back again, worked in one stated format throughout, with the normalisation rule that fixes the mantissa.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

How is a negative value written in floating point, and how is a mantissa normalised?

Process

Describe the steps for converting a positive real number to normalised floating point.

Numbers

Convert 5.5 to a 12-bit format with an 8-bit mantissa and a 4-bit exponent.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Describe the steps for converting a positive real number to normalised floating point.

    Model answer

    The number is first written in binary, then the binary point is moved to sit just after the sign bit. The number of places moved becomes the exponent.

  2. 2

    Convert 5.5 to a 12-bit format with an 8-bit mantissa and a 4-bit exponent.

    Model answer

    Denary 5.5 is 101.1 in binary, which normalises to 0.1011 × 2³. The mantissa is 01011000 and the exponent is 0011.

  3. 3

    Convert 0.375 to the same 12-bit format.

    Model answer

    Denary 0.375 is 0.011 in binary, which normalises to 0.11 × 2⁻¹. The mantissa is 01100000 and the exponent is 1111.

  4. 4

    State the value of the floating point number with mantissa 01101000 and exponent 0010.

    Model answer

    The mantissa 0.1101 is 0.8125 and the exponent is 2. The value is 0.8125 × 4, which is 3.25.

  5. 5

    State the value of the floating point number with mantissa 01000000 and exponent 0101.

    Model answer

    The mantissa 0.1 is 0.5 and the exponent is 5. The value is 0.5 × 32, which is 16.

  6. 6

    Convert −5.5 to the same 12-bit format.

    Model answer

    The mantissa for positive 5.5 is 01011000, whose two's complement is 10101000. The exponent stays 0011, so −5.5 is the mantissa 10101000 with exponent 0011.

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.