Skip to content
Official PYQ · 2005

GATE CS 2005 Q85-a — Number Representations (Fixed and Floating Point)

Explain with AI

Consider the following floating-point format.

Mantissa is a pure fraction in sign-magnitude form.

The decimal number 0.239×2130.239 \times 2^{13} has the following hexadecimal representation (without normalization and rounding off):

Choose one option
View worked solution

Answer: D

The 16-bit floating-point format consists of two parts:

  • Exponent (8 bits): Represented in excess-64 (biased) format.
  • Mantissa (8 bits): Represented as a pure fraction in sign-magnitude form (1 sign bit + 7 magnitude bits).

Step 1: Convert the Exponent

The given exponent is 1313. With a bias of 6464, the biased exponent is: Biased Exponent=13+64=77\text{Biased Exponent} = 13 + 64 = 77 Converting 7777 to 8-bit binary: 7710=0100 11012=4D1677_{10} = 0100\,1101_2 = \text{4D}_{16}

Step 2: Convert the Mantissa

The mantissa is +0.239+0.239. Converting the fractional part to binary: 0.239×2=0.478  ⟹  00.478×2=0.956  ⟹  00.956×2=1.912  ⟹  10.912×2=1.824  ⟹  10.824×2=1.648  ⟹  10.648×2=1.296  ⟹  10.296×2=0.592  ⟹  00.592×2=1.184  ⟹  1\begin{align*} 0.239 \times 2 &= 0.478 \implies 0 \\ 0.478 \times 2 &= 0.956 \implies 0 \\ 0.956 \times 2 &= 1.912 \implies 1 \\ 0.912 \times 2 &= 1.824 \implies 1 \\ 0.824 \times 2 &= 1.648 \implies 1 \\ 0.648 \times 2 &= 1.296 \implies 1 \\ 0.296 \times 2 &= 0.592 \implies 0 \\ 0.592 \times 2 &= 1.184 \implies 1 \end{align*} Thus, 0.239≈0.0011110120.239 \approx 0.00111101_2.

Since the number is positive, the sign bit is 00. The 8-bit sign-magnitude representation is: Mantissa=0 01111012=0011 11012=3D16\text{Mantissa} = 0\,0111101_2 = 0011\,1101_2 = \text{3D}_{16}

Step 3: Combine Exponent and Mantissa

Combining the two parts gives: 4D 3D16\text{4D 3D}_{16}

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Number Representations (Fixed and Floating Point) questions