GATE 2023 CS – Question 45
Consider the IEEE-754 single precision floating point numbers P=0xC1800000 and Q=0x3F5C2EF4. Which one of the following corresponds to the product of these numbers (i.e., P × Q), represented in the IEEE-754 single precision format?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) 0xC15C2EF4
Explanation
IEEE-754 single precision: 1 sign bit, 8 exponent bits (bias 127), 23 fraction bits.
- $P=\texttt{0xC1800000}=1\,10000011\,000\ldots$: sign $-$, exponent $131-127=4$, mantissa $1.0$. $P=-1.0\times2^4=-16$.
- $Q=\texttt{0x3F5C2EF4}$ (sign 0, exponent field $\texttt{01111110}=126$): exponent $126-127=-1$, mantissa $1.\texttt{5C2EF4}_{16}$ (about $1.36$). $Q\approx1.36\times2^{-1}$.
Product: the sign is $-$; the exponents add: $4+(-1)=3$; the mantissas multiply: $1.0\times1.\texttt{5C2EF4}=1.\texttt{5C2EF4}$ (no normalisation needed).
New biased exponent $=3+127=130=\texttt{10000010}$. The result bits: $1\ 10000010\ \texttt{5C2EF4's fraction}$, which in hex is **0xC15C2EF4** (option C).
More Number Representation and Floating Point Arithmetic questions
- GATE 2022 CS Q41
- GATE 2020 CS Q39
- GATE 2018 CS Q43
- GATE 2014 CS (CS2) Q55
- GATE 2026 CS (CS1) Q22
- GATE 2026 CS (CS1) Q36
All Number Representation and Floating Point Arithmetic questions →