Course contentsShow
← Computer Science
Lesson 1065 of 2,87225. Computer Architecture FoundationsFree lesson

IEEE 754 Standard: Single Precision

The 32-bit floating-point format with 1 sign bit, 8 exponent bits, and 23 significand bits.

IEEE 754 Standard: Single Precision

What You'll Learn

You'll learn how the universal standard for representing decimal numbers in computers uses 32 bits to store a sign, exponent, and fractional part.


How Computers Store Decimal Numbers

The IEEE 754 Single Precision format is the most common way computers store floating-point numbers. It divides 32 bits into three components:

  • 1 sign bit: Determines if the number is positive (0) or negative (1)
  • 8 exponent bits: Stores the power of 2 (with a bias)
  • 23 significand bits (also called mantissa): Stores the fractional precision

Think of it like scientific notation: -3.75 × 10⁸. The sign tells you positive or negative, the exponent (8) tells you the scale, and the significand (3.75) tells you the precise value.

The Format Layout

[S][EEEEEEEE][MMMMMMMMMMMMMMMMMMMMMMM]
 ↑     ↑              ↑
 1 bit 8 bits      23 bits
 Sign  Exponent    Significand

The exponent uses biased representation (bias = 127), meaning you subtract 127 from the stored value to get the actual exponent. For example, to represent 2³, you'd store 3 + 127 = 130 in the exponent field.

The significand assumes an implicit leading 1 (called the "hidden bit"), so 23 bits actually give you 24 bits of precision. If the significand is all zeros, the actual value is 1.0.

Why This Matters

This standard enables consistent floating-point behavior across all modern computers, from phones to supercomputers. Every programming language and CPU follows it, ensuring your calculations produce the same results everywhere.

Key Takeaway: IEEE 754 Single Precision packs a floating-point number into 32 bits using 1 sign bit, 8 exponent bits (biased by 127), and 23 significand bits (with an implicit leading 1).