Skip to content
GATEiit

GATE CSE 2021 Set 1 Q34: Decimal value of an IEEE 754 single-precision pattern

Question

Consider the following representation of a number in IEEE 754 single-precision floating point format with a bias of 127.

S:1E:10000001F:11110000000000000000000S: 1 \qquad E: 10000001 \qquad F: 11110000000000000000000

Here SS, EE and FF denote the sign, exponent and fraction components of the floating point representation.

The decimal value corresponding to the above representation (rounded to 2 decimal places) is ________.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: -7.75 (official GATE 2021 final answer key)

Concept used: A normalised value is (−1)S×1.F×2E−127(-1)^S \times 1.F \times 2^{E - 127}.

First step: E=129E = 129, so the scale is 222^2; the significand is 1.11112=1.93751.1111_2 = 1.9375.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2021 Set 1 CS question paper and final answer key, organised by IIT Bombay. Question paper · Answer key