Question
The decimal value 0.5 in IEEE single precision floating point representation has
Official answer and solution
- Official answer
- B
- From
- Official GATE 2012 answer key
Solution
Convert the decimal number 0.5 to normalized binary scientific notation and compute the IEEE 754 single precision fields.
We represent in binary scientific notation:
In IEEE 754 single precision (32-bit) floating point format:
- Sign bit (positive).
- The normalized form is , where is the 23-bit fractional mantissa and is the 8-bit biased exponent.
- The unbiased exponent value is .
- The biased exponent stored is .
- The significand is , so the fraction bits (stored mantissa ) are all zeros: .
Therefore, the representation has fraction bits of and an exponent value of .
This corresponds to option (B).
Final answer
B
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2012 Computer Science and Information Technology (CS)
- Question
- 7 of 65, printed as CS Q.7
- 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.