retagged by
7,880 views
9 votes
9 votes
Consider the following representation of a number in $\text{IEEE 754}$ single-precision floating point format with a bias of $127$.$$S: 1\quad\quad  E:\; 10000001\quad\quad F:\;11110000000000000000000$$ Here $S, \;E$ and $F$ 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 ____________.
retagged by

5 Answers

Best answer
18 votes
18 votes

-7.75 is the correct answer.

Here, Sign bit = 1 → number is negative.

Exponent bits $= 10000001 = 129_{10} → E = 129-127 = 2$ as IEEE-754 single precision format uses $127$ as the exponent bias.

Mantissa bits $= 11110000000000000000000$

Number $= – 1.111100\ldots 00 \times 2^{2} = (-111.11)_2$ 

$\therefore$ Number $= (-7.75)_{10}$.

Reference: https://steve.hollasch.net/cgindex/coding/ieeefloat.html

edited by
4 votes
4 votes

ANS IS -7.75. 

given S = 1 , E = 10000001 M =11110000000000000000000 , BY CALCULATING AS BELOW ANS WILL BE -7.75

3 votes
3 votes

 

  S (1)

                                  E(8)

                      F (23)

 

$(-1)^s * (1.M) * 2^{E-127}$ is used to convert IEEE 754 single precision floating point when $1 \leq E \leq 254$  and M any number 

 

Hear,

E= 10000001   Decimal equivalent 129

F = 111100000000000000000000

 

$(-1)^1 * (1.111100000000000000000000) * 2^{129-127} = -(1.1111 * 2^2)   $

$-(111.11)= -7.75$

Ans : -7.75

 

 

edited by
2 votes
2 votes
Ans: $-7.75$

S(Sign) is $1$. So number is negative.

E(Biased exponent) in decimal is $129$. Bias is $127$. So real exponent is $129 - 127 = 2.$

F(Fraction) is normalized and has an implicit $1$ before decimal point.

$\therefore$ Number is $-1.11110000000000000000000 * 2^2 = -111.11 = -7.75$
edited by
Answer:

Related questions

8 votes
8 votes
4 answers
1
Arjun asked Feb 18, 2021
8,794 views
Let the representation of a number in base $3$ be $210$. What is the hexadecimal representation of the number?$15$$21$$\text{D}2$$528$
20 votes
20 votes
3 answers
2