# GATE CSE 2021 Set 1 | Question: 24

373 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 ____________.

recategorized ago

Here, Sign bit = 1 → Number is negative.

Exponent bits = 10000001 = 129 → E = 129-127 = 2

Mantissa bits = 11110000000000000000000

Number = – 1.111100..00 * $2^{2}$ → -111.11

∴ Number = -7.75 in decimal.

1 vote

 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
1
E is 129

E = 129-127 = 2

(1.1111)^2

111.11 =7.75

Sing bit 1 (NEG) so final ans - 7.75
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.11000000000000000000 * 2^2 = -7.75$

ANS IS -7.75.

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

## Related questions

1
352 views
Let the representation of a number in base $3$ be $210$. What is the hexadecimal representation of the number? $15$ $21$ $D2$ $528$
The format of the single-precision floating point representation of a real number as per the $\text{IEEE 754}$ ... $=00000000$ and mantissa $=0000000000000000000000001$ exponent $=00000001$ and mantissa $=0000000000000000000000000$ exponent $=00000001$ and mantissa $=0000000000000000000000001$
Given the following binary number in $32$-bit (single precision) $IEEE-754$ format : $\large 00111110011011010000000000000000$ The decimal value closest to this floating-point number is : $1.45*10^1$ $1.45*10^{-1}$ $2.27*10^{-1}$ $2.27*10^1$
The value of a $\text{float}$ type variable is represented using the single-precision $\text{32-bit}$ floating point format of $IEEE-754$ standard that uses $1$ $\text{bit}$ for sign, $\text{8 bits}$ for biased exponent and $\text{23 bits}$ for the ... $−14.25$. The representation of $X$ in hexadecimal notation is $C1640000H$ $416C0000H$ $41640000H$ $C16C0000H$