Computer Arithmetic

How are the bits of an IEEE 754 single-precision (32-bit) number allocated among sign, exponent and significand?

  1. A1, 11, 20
  2. B1, 8, 23
  3. C1, 5, 26
Show answer and explanation

Answer: B. 1, 8, 23

Single precision (FP32) uses 1 sign bit, 8 exponent bits and 23 significand bits, 32 in total. For normalized numbers the leading 1 of the significand is implied, so precision is 24 bits, about seven decimal digits. Double precision (FP64) uses 1, 11 and 52 bits, with a wider exponent and higher precision. 1, 11, 20 confuses it with double precision's exponent width, and 1, 5, 26 with half precision's.

IEEE 754 single-precision bit layout 31 30 23 22 0 s e f Sign Exponent (8 bits) Fraction (23 bits) 1 bit Add bias 127 Leading 1 omitted (hidden bit) Value = (−1)^s × 1.f × 2^(e − 127) e.g. −6.5 = −110.1₂ = −1.101₂ × 2² 1 10000001 10100000000000000000000 Neg. e = 2 + 127 = 129 “101” followed by 0s In hex: 0xC0D00000
IEEE 754 single-precision bit layout · View in diagrams
  • A. An 11-bit exponent is the double-precision width.
  • B. Correct. 1 sign, 8 exponent and 23 significand bits.
  • C. A 5-bit exponent is the half-precision (FP16) width.

Related calculators

Books on Computer Arithmetic Ad

As an Amazon Associate I earn from qualifying purchases.

More Computer Arithmetic questions

  1. In IEEE 754 double precision (64-bit), how many bits are the exponent and significand?
  2. In IEEE 754 single precision, if the stored exponent field is 130, what is the actual exponent (power of two)?
  3. What is the effect of not storing the leading 1 of the significand (the hidden bit) in IEEE 754 normalized numbers?
  4. What is the hexadecimal bit pattern of decimal 1.0 in IEEE 754 single precision?
  5. Converting −6.25 to single precision, what is the sign–exponent–significand bit string written in hexadecimal?

Comparisons in this topic