GateMCQSCIENTIFIC PREP LAB
PlanSign Up
INTERMEDIATEFrequently Tested 4 min read 25 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)
Quick 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}.

Interactive 32-Bit IEEE-754 Bit-Field Register Decoder

Digital LogicSign • Exp • Mantissa

32-Bit IEEE-754 Floating-Point Bit-Field Decoder

SIGN (1b)
1
BIASED EXP (8b = 130)
10000010
MANTISSA FRACTION M (23b)
11010000000000000000000
Normalized Float(-1)¹ × (1.1101)₂ × 2^(130 − 127) = −1.8125 × 8 = −14.5
Key Formulas Summary
Normalized IEEE-754 Value
(−1)S×(1.M)2×2E−Bias(-1)^S \times (1.M)_2 \times 2^{E - \text{Bias}}
Note: 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}}
Note: Provides gradual underflow near zero
#Digital Logic#COA#IEEE 754#NAT

Practice Questions on This Chapter (3)

Q1GATE CS Digital LogicMCQEASY
+1M • -0.33

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

⚡ Click an option above to verify instantly
Q2GATE CS Digital LogicMCQMEDIUM
+2M • -0.67

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?

⚡ Click an option above to verify instantly
Q3GATE CS 2021NATMEDIUM
+2M • 0 Neg

What decimal value is represented by the 32-bit IEEE-754 single-precision hexadecimal word 0xC1680000?

Previous TopicMath 2027 Rank-Decider: Indicator Expectation, Order Statistics, Memoryless Distributions & ProjectionsNext Topic Boolean Minimization, K-Maps, Multiplexers & Sequential Flip-Flop Counters