← 🔢 Number Representation & Computer Arithmetic
Subtopic 4 of 9

4.4IEEE 754 single

The idea

IEEE 754 stores a real number as scientific notation in binary: sign, exponent and fraction, as ±1.f × 2e.

Think of it like this: Like writing 5750 as 5.75 × 10³, but with 2 as the base.

Why it exists

It lets one format cover tiny and huge numbers with similar relative precision.

How it works

  1. Convert to binary: 5.75 = 101.11.
  2. Normalise: 1.0111 × 22. The leading 1 is not stored.
  3. Exponent field = 2 + bias (127) = 129 = 10000001.
  4. Fraction = 0111000... , sign = 1 for negative.
  5. Value = (−1)s × 1.f × 2e−127.

Worked example: −5.75

Sign 1, exponent 10000001, fraction 01110000...0 → 0xC0B80000.

Now play with it

  • →Press the preset buttons and watch the three colour-coded fields change.
  • →Type 8 and read the stored exponent.
11000000101110000000000000000000
ClassNormal
Hex0xC0B80000
Stored exponent129
Unbiased (E − 127)2
Significand1.011100000000…
Value-5.75

Type a decimal, or hex like 0x40490FDB. Colours: sign, exponent, fraction.

Check yourself

What is the stored exponent field of 8.0 in IEEE single precision?

Remember: Stored exponent = true exponent + 127; hidden leading 1.
Exam notes (the dense version)

1 sign | 8 exponent (bias 127) | 23 fraction. Normal: (−1)s × 1.f × 2e−127.

Previous year questions: Number Representation & Computer Arithmetic (19)

PYQs are grouped by topic, so this is the full set for Number Representation & Computer Arithmetic; try the ones that match this subtopic. Open all 19 on the topic page.