Back to course
Cambridge InternationalAS & A LevelComputer ScienceTopic 1 of 4Syllabus 2025–2027Code 9618

Data Representation and Manipulation

Cambridge International AS & A Level Computer Science (9618) — 2025–2027

Covers two's complement, binary-coded decimal, floating-point representation, and character encoding systems.

2 lessonsVideo lesson coming soon

Free preview. Enrol in Cambridge International AS & A Level Computer Science (9618) — 2025–2027 to open every lesson in this topic, watch every video and track your progress.

Text size

Topic notes

Written topic notes for this unit are being prepared. The detailed notes for every lesson in this topic are just below the video lesson.

Video lesson coming soon

The notes for this topic cover the same work. Its video lesson will appear here once it is published.

Lessons in this topic

All lessons
Lesson & quiz

LEARNING OBJECTIVES

  • Explain the purpose of mantissa and exponent components.
  • Calculate the decimal value of a given floating-point number.
  • Identify the rules for normalising a binary number.
  • Convert denary numbers into floating-point format.
  • Determine the effect of normalisation on precision.

IN SIMPLE TERMS

Computers have a limited amount of memory to store numbers. Sometimes we need to store very large numbers or very small fractions. Floating-point representation is a method to store these numbers efficiently by splitting them into two parts. This lesson explains how to break numbers down into a mantissa and an exponent.

This topic is very important for your Cambridge 9618 exam. Examiners often include questions here to test your attention to detail. If you learn the steps to convert and normalise numbers, you will gain easy marks that many other students miss. It is a fundamental skill for understanding how processors handle complex mathematics.

Read the following notes slowly. Follow the examples step by step on a piece of paper. Do not rush the conversion process. Use the provided exercises to test yourself before moving to the next section. If you feel confused, go back to the definitions of the mantissa and exponent before trying the calculations again.

KEY TERMS YOU MUST KNOW

  • Mantissa: The part of a floating-point number that contains the significant digits or the actual number value.
  • Exponent: The part of a floating-point number that determines the position of the decimal point, similar to a power.
  • Normalisation: The process of adjusting a floating-point number so that it starts with 0.1 for positive numbers or 1.0 for negative numbers to ensure consistency.
  • Sign bit: The leftmost bit in a number that tells you if the number is positive or negative.
  • Two's complement: A standard way to represent negative numbers in binary code.
  • Precision: The level of detail or accuracy in a number, which depends on how many bits are used for the mantissa.

INTRODUCTION

Welcome to this intensive module on Floating-Point Representation and Normalisation. As an examiner, I can tell you that this is a core topic in the Cambridge 9618 syllabus. While students often master fixed-point arithmetic easily, the transition to floating-point representation frequently separates the A-grade candidates from the rest. The ability to represent a wide range of values with limited bits is the cornerstone of how modern processors handle scientific calculations and high-precision data. If you master this, you secure marks that are often viewed as technical hurdles by your peers. We will focus on the mechanics of binary conversion, the necessity of normalisation, and the subtle traps set in examination papers.

HIGH YIELD CONCEPTS

In computer systems, we need a way to store very large or very small fractional numbers. We use a floating-point system consisting of two parts: the mantissa and the exponent.

The Mantissa is the significant digits of the number. It is effectively the coefficient. In 9618, we usually assume Two's Complement representation for the mantissa. This means the leftmost bit is the sign bit. A positive number starts with 0 and a negative number starts with 1.

The Exponent represents the power to which the base (which is 2 in binary) is raised. This dictates the position of the binary point. A larger exponent moves the point to the right, creating a larger number, while a negative exponent moves it to the left, creating a small fraction.

Normalisation is the process of ensuring that a floating-point number is stored in a unique, standard format. Without normalisation, the same number could be represented in multiple ways (e.g., 0.1 x 2^2 is the same as 0.01 x 2^3). Computers require a standard format to perform arithmetic efficiently.

A normalised positive binary number must start with the bits 01. A normalised negative binary number (in two's complement) must start with the bits 10. If the number starts with 00 or 11, it is not normalised. We shift the mantissa bits and adjust the exponent until the condition is met.

1618041211010110₂ = 16 + 4 + 2 = 22
In base 2 (binary), each place is a power of 2 instead of 10: 16, 8, 4, 2, 1. The number 10110 has a 1 in the 16, 4 and 2 places, so its value is 16 + 4 + 2 = 22 in denary.

The diagram above illustrates the concept of binary place values extending into the fractional range. Moving left from the binary point, we have 2^0, 2^1, 2^2, etc. Moving right from the binary point, we have 2^-1 (0.5), 2^-2 (0.25), 2^-3 (0.125), and so on. Understanding these positions is essential for converting denary fractions into binary.

WORKING EXAMPLE ONE

Convert the denary number 5.625 into a 12-bit floating point format with an 8-bit mantissa and a 4-bit exponent.

Step 1: Convert the integer part 5 to binary. 5 is 101. Step 2: Convert the fractional part 0.625 to binary. 0.625 = 0.5 + 0.125, which corresponds to 2^-1 + 2^-3. In binary, this is 0.101. Step 3: Combine them: 101.101. Step 4: Normalise. Move the binary point until it is immediately after the sign bit. 101.101 becomes 0.101101 moved 3 places. Step 5: Represent the mantissa: 0.101101 becomes 01011010 (padded to 8 bits). Step 6: Represent the exponent: The exponent is 3. In 4-bit binary, 3 is 0011. Final answer: Mantissa 01011010, Exponent 0011.

WORKING EXAMPLE TWO

Normalise the following 8-bit mantissa: 00110100. Assume the exponent is 0101.

Step 1: Observe the mantissa: 00110100. It starts with 00, so it is not normalised. Step 2: Shift the mantissa left by one position: 01101000. Step 3: Since we shifted left once, we must decrement the exponent by 1. Step 4: Exponent 0101 becomes 0100. Final answer: Mantissa 01101000, Exponent 0100.

WORKING EXAMPLE THREE

Represent -2.5 in an 8-bit mantissa and 4-bit exponent system.

Step 1: Positive 2.5 in binary is 10.1. Step 2: To get the negative, we perform Two's Complement. The positive is 0010.1000. Step 3: Flip the bits: 1101.0111. Step 4: Add 1 to the least significant bit: 1101.1000. Step 5: Normalise: The number starts with 11, so shift left until it starts with 10. Shifting once gives 101.1000 (truncated to mantissa size). Step 6: Adjust exponent: We shifted left once, so the exponent (initially 0010 for 2^2) becomes 0001. Final answer: Mantissa 10110000, Exponent 0001.

2x10
A balanced scale. The left side is 2x and the right side is 10, and because the scale is level the two sides are equal: 2x = 10. Divide both sides by 2 to get x = 5.

The balance diagram represents the relationship between the mantissa and the exponent. When one changes (shifting the point), the other must be adjusted in the opposite direction to keep the value of the number constant. If you multiply the mantissa by 2 by shifting, you must subtract 1 from the exponent to keep the total value equivalent.

EXAMINER TRAPS

  • Confusing the bit depth: Examiners often set the mantissa to 8 bits and exponent to 4 bits. Students often try to use 8 bits for the exponent, wasting time and space. Always re-read the specific bit requirements in the question.
  • The 00 vs 01 trap: Many students think normalisation just means any number starting with 0. Remember, a positive normalised number MUST start with 01. If it starts with 00, it is not normalised.
  • Two's Complement errors: When asked to normalise a negative number, students often forget that the sign bit remains 1. The sequence for a negative normalised number is 10... not 11.
  • Exponent adjustment direction: When you shift the mantissa LEFT to normalise, you must DECREMENT the exponent. When you shift the mantissa RIGHT, you must INCREMENT the exponent. Candidates frequently do the opposite, which results in the value being multiplied or divided by 2 incorrectly.
  • Truncation vs Rounding: If the mantissa does not fit into the allocated bits, you are usually expected to truncate. Check the question if it explicitly asks for rounding. Usually, 9618 requires simple truncation.

PAST PAPER STYLE WALKTHROUGH

Question: A system uses an 8-bit two's complement mantissa and a 4-bit two's complement exponent. Show the representation of the number 1.5.

Command word: SHOW Step 1: Convert 1.5 to binary. 1 = 1, 0.5 = 0.1. Combined = 1.1. Step 2: Normalise 1.1. To make it 0.11, we move the point left once. 0.11 * 2^1. Step 3: Mantissa is 01100000 (8 bits). Step 4: Exponent is 0001 (1 in 4-bit two's complement).

Command word: EXPLAIN Question: Why is this number normalised? Answer: The number is normalised because the mantissa starts with 01. This ensures that the representation is unique and allows for maximum precision within the allocated bit space.

1 = 4/43/4
Fraction bars. The top bar is the whole, split into 4 equal parts (4/4 = 1). The bottom bar has 3 of those 4 parts shaded, so it shows 3/4. Same-size parts let you compare fractions directly.

The fraction-bar diagram represents how a fixed number of bits is divided between the mantissa and the exponent. In the 9618 syllabus, the mantissa usually takes the larger share of the bits to ensure higher precision, while the exponent takes fewer bits to define the range. Changing the size of the exponent changes the range of numbers you can store, whereas changing the size of the mantissa changes the accuracy of the numbers stored.

SUMMARY

Floating-point representation is a fundamental method to handle numbers with fractional parts. You have learned that the mantissa provides the precision while the exponent provides the range. Normalisation is the strict rule set that ensures consistency and allows the computer to perform calculations accurately. Remember to check your mantissa for 01 or 10 starts, manage your exponents based on shift direction, and always, always double-check your bit counts. Practice these conversions repeatedly; the logic becomes second nature once you see the pattern of shifting the binary point and adjusting the exponent. Mastery of this section is a clear indicator that you are ready for the complex challenges of the 9618 paper.

Lesson & quiz