3,797 views
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 ____________.

### Subscribe to GO Classes for GATE CSE 2022

-7.75 is 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$

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

by
1 3 5

 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

by
1 2 6

### 1 comment

E is 129

E = 129-127 = 2

(1.1111)^2

111.11 =7.75

Sing bit 1 (NEG) so final ans - 7.75

ANS IS -7.75.

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

by
1 4
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$
by
2 2 8

https://www.h-schmidt.net/FloatConverter/IEEE754.html

Calculator for Ieee 754 representations.

by
1 1