Fixed-point binary can only represent a limited range of values with a fixed precision. Floating-point representation allows computers to represent very large numbers, very small numbers, and fractional numbers using a fixed number of bits by separating the value into a mantissa and an exponent.
The general form is: Value = Mantissa × BaseExponent
In binary floating-point: Value = Mantissa × 2Exponent
| Component | Role | Effect of increasing bits |
|---|---|---|
| Mantissa | Stores the significant digits of the number | Greater precision — more decimal places |
| Exponent | Stores the power of 2 (scales the mantissa) | Greater range — can represent larger/smaller numbers |
The exponent is typically stored in two's complement, allowing negative exponents (for fractions) and positive exponents (for large numbers).
A floating-point number is normalised when the mantissa is in a standard form that maximises precision. For binary floating-point:
0.1... (the bit after the binary point is 1)1.0... (the bit after the binary point is 0)Normalisation ensures there is no wasted precision from leading zeros (or ones for negatives).
Suppose we have an 8-bit mantissa and 4-bit exponent (all two's complement):
To represent the denary value 5.5:
0.1011 × 2³ (shift left by 3 positions)01011000 (8 bits, with binary point after bit 7)0011 (4-bit two's complement)| Property | Determined by | To improve it |
|---|---|---|
| Precision | Number of mantissa bits | Increase mantissa bits |
| Range | Number of exponent bits | Increase exponent bits |
With a fixed total number of bits, allocating more bits to the mantissa increases precision but decreases range, and vice versa. This is a fundamental design trade-off.
8 questions · instantly marked · Cambridge 9618 standard
| Term | Definition |
|---|
10 questions · 10 marks · 10 minutes