The GATE Grind

GATE 2023 CS – Question 45

Digital Logic · Number Representation and Floating Point Arithmetic · 2 marks · Multiple choice

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?

  1. 0x404C2EF4
  2. 0x405C2EF4
  3. 0xC15C2EF4
  4. 0xC14C2EF4

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.

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

All Number Representation and Floating Point Arithmetic questions →