Question
Consider the IEEE-754 single precision floating point numbers
Which one of the following corresponds to the product of these numbers (i.e., ), represented in the IEEE-754 single precision format?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2023 answer key
Solution
Decode IEEE-754 single precision operands and multiply exponents and mantissas.
-
Decode :
- Binary:
- Sign bit (negative)
- Exponent:
- Mantissa:
- Value:
-
Multiply :
- Since is positive (sign bit 0), the product has sign bit .
- Multiplying by simply increases the biased exponent of by , keeping the significand identical!
- Biased exponent of : .
- New biased exponent: .
- Significand remains .
-
Encode the result:
- Sign:
- Exponent:
- Fraction:
- In hex: .
Option (C)
Trying to convert both floating point numbers to decimal rather than working directly with the power-of-2 exponent shift.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2023 Computer Science and Information Technology (CS)
- Question
- 45 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.