Advanced

Floating Point Numbers

AicademyAicademy
·A-Level Computer Science·AQA 7517·6 min
4.5.4.4 Numbers with a fractional part·4.5.4.8 Normalisation of floating point

Fixed Point Binary

In fixed point representation, the binary point (the fractional separator, like a decimal point) is in a fixed position. Bits to the left of the binary point represent integer values; bits to the right represent fractions.

For bit position relative to the binary point: value = (k can be negative for fractional positions).

Example — 4 integer bits + 4 fractional bits:

Bit
84210.50.250.1250.0625
Digit11010110
Value840100.250.1250

Convert to fixed point (4 integer + 4 fractional bits):

  • Integer part:
  • Fractional part: : multiply by 2 repeatedly — → 1; → 1 →
  • Result:

Limitation: the binary point position is fixed — range and precision cannot change. The same format cannot represent both very large and very small numbers.

Floating Point: Mantissa and Exponent

Floating point stores a number as:

Both mantissa and exponent are stored as two's complement integers. This allows both large numbers (large positive exponent) and small numbers (large negative exponent).

AQA uses a simplified model — not the IEEE 754 standard. The IEEE standard is not required.

AQA format: the binary point in the mantissa is assumed to be after the sign bit (MSB). So a 4-bit mantissa represents a value in the range .

Examples (4-bit mantissa, 4-bit exponent):

Mantissa bitsMantissa valueExponent bitsExponent valueRepresented value
01100010
01110010
10100000

Reading a mantissa: the sign bit is the MSB; the binary point follows it.

  • : sign = 0 (positive); remaining bits after the binary point = . Mantissa value = .
  • : sign = 1 (negative). Apply two's complement: invert , add 1 → . So mantissa = .

Converting Decimal to Floating Point

Steps to convert a decimal number to floating point:

  1. Convert the integer and fractional parts to binary
  2. Write in the form (normalised — see slide 5)
  3. Fit the mantissa and exponent into the allocated bits; apply two's complement for negatives

Worked example — represent using a 4-bit mantissa and 4-bit exponent:

Step 1:

Step 2: normalise → (shift right by 2 places; exponent = 2)

Step 3:

  • Mantissa: → stored as (sign=0, fractional bits=111)
  • Exponent: → stored as (two's complement positive)

Floating point representation: mantissa = , exponent =

Verify:

Converting Floating Point Back to Decimal

Given mantissa and exponent in bits, recover the decimal value:

  1. Convert mantissa bits to a two's complement fractional value (binary point after MSB)
  2. Convert exponent bits to a two's complement integer
  3. Compute mantissa ×

Worked example — mantissa = , exponent = (both 4-bit two's complement):

Mantissa : negative (MSB=1). Invert: , add 1: . So mantissa = .

Exponent : in two's complement. (, or invert+1: → exponent = .)

Value

Something not quite clicking?

Ask Aica to explain any part of this differently. Free, takes 30 seconds.

Ask Aica

Normalisation

Normalised form ensures maximum precision by using all available mantissa bits effectively. An un-normalised number has leading redundant zeros (positive) or ones (negative) in the mantissa.

Normalisation rules:

  • Positive normalised mantissa starts with (sign bit 0, next bit 1)
  • Negative normalised mantissa starts with (sign bit 1, next bit 0)

Un-normalised numbers can be normalised by shifting the mantissa and adjusting the exponent:

Example — normalise mantissa , exponent (4-bit each):

Mantissa : not normalised (starts with , not ). Shift mantissa left by 1: . Decrement exponent by 1: . Stored as: mantissa = , exponent = . ✓

Example 2 — normalise mantissa , exponent :

Mantissa : not normalised (starts with , not ). Shift mantissa left by 1: . Decrement exponent by 1: . Stored as: mantissa = , exponent = . ✓

Fixed Point vs Floating Point

Fixed pointFloating point
Binary pointFixed positionMoves (via exponent)
RangeLimitedMuch larger
PrecisionConstant absolute precisionRelative precision (proportional to magnitude)
SpeedFaster (hardware simpler)Slower (hardware more complex)
Best forKnown, bounded valuesScientific computing; very large or very small values

Precision vs range trade-off: adding more bits to the mantissa increases precision; adding more bits to the exponent increases range. With a fixed total bit count, more precision means less range and vice versa.

Common Exam Mistakes

1. Placing the binary point in the wrong position for the mantissa

In the AQA model, the binary point is after the sign bit (MSB). A 4-bit mantissa represents , not .

2. Forgetting to adjust the exponent when normalising

When you shift the mantissa left by one position, you must decrement the exponent by one (and vice versa). Shifting without adjusting the exponent changes the value.

3. Confusing normalised and un-normalised

A normalised positive mantissa starts ; a normalised negative starts . Starting or means the number is un-normalised and precision is being wasted.

4. Using IEEE 754 format

AQA uses a simplified two's complement model, not IEEE 754. Do not apply bias to the exponent or use the IEEE implicit leading 1 convention — the AQA format is different.

Generate revision on any topic you study

Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set — personalised to your level.

Lessons on anything

Structured, level-matched lessons on any topic you study

Practice quizzes

Find out what you actually know before the exam does

Flashcard sets

Lock in key concepts with instant revision cards

Ask Aica

Stuck on something? Get a clear explanation, any time

Prev

Binary Number Representations

Next

Representation Errors and Precision

Related lessons

7 Slides

Lesson

Binary Number Representations

A-Level Computer Science · AQA 7517

10 hours ago

6 Slides

Lesson

Representation Errors and Precision

A-Level Computer Science · AQA 7517

10 hours ago