edited by
8,675 views
29 votes
29 votes

The following bit pattern represents a floating point number in IEEE $754$ single precision format

$1 \ 10000011 \ 101000000000000000000000$

The value of the number in decimal form is

  1. $-10$
  2. $-13$
  3. $-26$
  4. None of the above
edited by

1 Answer

Best answer
47 votes
47 votes

Sign bit is $1 \implies$ number is negative

Exponent bits- $10000011$

Exponent is added with $127$ bias in IEEE single precision format. So, actual exponent $= 10000011 - 127 = 131 - 127 = 4$

Mantissa bits- $101000000000000000000000$

In IEEE format, an implied $1$ is before mantissa, and hence the actual number is:

$-1.101 \times 2^{4}$

$=-(11010)_{2} = - 26$

http://steve.hollasch.net/cgindex/coding/ieeefloat.html

Correct Answer: $C$

edited by
Answer:

Related questions

0 votes
0 votes
1 answer
3
4 votes
4 votes
2 answers
4