Skip to content
Official PYQ · 2017

GATE CS 2017 Set 1 Q7 — Number Representations (Fixed and Floating Point)

Explain with AI

The n-bit fixed-point representation of an unsigned real number XX uses ff bits for the fraction part. Let i=n−fi = n-f. The range of decimal values for XX in this representation is

Choose one option
View worked solution

Answer: D

For an unsigned nn-bit fixed-point representation with ii integer bits and ff fractional bits (n=i+fn = i + f):

  • Minimum value: Since the representation is unsigned, the minimum value occurs when all nn bits are 00, which represents 00.
  • Maximum value: The maximum value occurs when all nn bits are 11. The weight of the least significant bit (LSB) in the fractional part is 2−f2^{-f}. The value represented by all nn bits being 11 is:
    ∑k=−fi−12k=2i−2−f\sum_{k=-f}^{i-1} 2^k = 2^i - 2^{-f}

Thus, the range of decimal values for XX is 00 to (2i−2−f)\left(2^i - 2^{-f}\right), which corresponds to Option D.

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

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