∑GateAndNet
Practice MCQs
GATE CS / Digital Logic
Edit
INTERMEDIATE🔥 High-Yield Exam Topic 4 min read 4 views

IEEE-754 Floating-Point Standard & 2’s Complement Arithmetic

Exact bit layouts, implicit leading 1, biased exponent, denormalized subnormals, NaN, and range formulas.

IEEE-754 Bit Layout Comparison

FormatTotal BitsSign (SS)Biased Exponent (EE)Mantissa / Fraction (MM)Bias (2k−1−12^{k-1}-1)
Single Precision (float)323211 bit88 bits2323 bits127127
Double Precision (double)646411 bit1111 bits5252 bits10231023

Special Exponent Encodings (Single Precision)

  • 1≤E≤2541 \le E \le 254: Normalized number (−1)S×(1.M)2×2E−127(-1)^S \times (1.M)_2 \times 2^{E - 127}
  • E=0,  M=0E = 0, \; M = 0: Signed Zero (+0.0+0.0 or −0.0-0.0)
  • E=0,  M≠0E = 0, \; M \ne 0: Denormalized number (−1)S×(0.M)2×2−126(-1)^S \times (0.M)_2 \times 2^{-126} (Note exponent is −126-126, NOT −127-127!)
  • E=255,  M=0E = 255, \; M = 0: ±∞\pm \infty
  • E=255,  M≠0E = 255, \; M \ne 0: NaN (Not a Number)
💡 Shortcut & Tip

Quick Hex-to-Float Conversion Example (0xC1580000):

  1. Binary: 1 | 10000010 | 1011000...0
  2. S=1S = 1 (Negative), E=(10000010)2=130  ⟹  e=130−127=3E = (10000010)_2 = 130 \implies e = 130 - 127 = 3.
  3. Mantissa (1.1011)2=1+0.5+0.125+0.0625=1.6875(1.1011)_2 = 1 + 0.5 + 0.125 + 0.0625 = 1.6875.
  4. Value =−1.6875×23=−13.5= -1.6875 \times 2^3 = \mathbf{-13.5}.
📐 Quick Revision Formula Sheet
Normalized IEEE-754 Value
(−1)S×(1.M)2×2E−Bias(-1)^S \times (1.M)_2 \times 2^{E - \text{Bias}}
💡 Single precision: Bias = 127; Double precision: Bias = 1023
Denormalized (E = 0, M != 0)
(−1)S×(0.M)2×21−Bias(-1)^S \times (0.M)_2 \times 2^{1 - \text{Bias}}
💡 Provides gradual underflow near zero
#Digital Logic#COA#IEEE 754#NAT

🎯 Practice PYQs on This Topic (2)

Q1.GATE CS Digital LogicMCQEASY
+1 Marks • -0.33 Neg

What is the range of signed integers representable in 88-bit 2’s complement representation?

Q2.GATE CS Digital LogicMCQMEDIUM
+2 Marks • -0.67 Neg

In IEEE-754 single-precision (32-bit) floating-point format, how many bits are allocated to [Sign | Biased Exponent | Mantissa Fraction] respectively, and what is the exponent bias?

Previous TopicRelations, Equivalence Classes, POSETs, Lattices & Group TheoryNext Topic Boolean Minimization, K-Maps, Multiplexers & Sequential Flip-Flop Counters