Skip to content

9618 · 13.3

Floating-point numbers, representation and manipulation

Floating-point is how computers handle numbers that are very large, very small, or have a fractional part. It's like scientific notation, splitting a number into a significant value (the mantissa) and a power-of-two scale factor (the exponent).

Need to know

What you need to know

  • **Mantissa**: A fixed-point binary fraction that holds the significant digits of the number. Its sign bit (Most Significant Bit) indicates whether the number is positive (0) or negative (1). It determines the number's **precision**.
  • **Exponent**: A binary integer that represents the power of 2 by which the mantissa should be multiplied. It determines the position of the binary point and thus the number's **range** (magnitude).

Explanation

Scientific Notation for Computers

  1. Convert the denary number into a fixed-point binary number (e.g., 9.75 becomes 1001.11).
  2. Move the binary point so it's at the beginning, creating a fractional number. This is called normalisation.
  3. Count how many places the binary point moved. This value becomes the exponent.
  4. Store the normalised mantissa and the exponent as two's complement binary numbers using the specified number of bits.