Consider a computer system that stores a floating-point numbers with 16-bit…

2007

Consider a computer system that stores a floating-point numbers with 16-bit mantissa and an 8-bit exponent, each in two’s complement. The smallest and largest positive values which can be stored are

  1. A.

    1 × 10 -128and 215× 1015

  2. B.

    1 × 10 -256and 215× 10255

  3. C.

    1 × 10 -128and 215× 10127

  4. D.

    1 × 10 -128and 215- 1 × 10127

Attempted by 108 students.

Show answer & explanation

Correct answer: D

The 8-bit exponent in two's complement ranges from -128 to +127. The 16-bit mantissa in two's complement has a maximum positive value of 2^15 - 1. Therefore, the smallest positive value is 1 * 2^-128 and the largest positive value is (2^15 - 1) * 2^127.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro