2,005 views
2 votes
2 votes
find the decimal equivalent of the bit pattern 1 01111111 101 00000000000000000000 as per IEEE 754 standard.In IEEE 754 a single bit precision binary floating point format is stored in 32 bits.
a) 1.625

b) -1.875

c) -1.625

d) .625

1 Answer

Best answer
2 votes
2 votes

-1.625.

For IEEE Single precision floating point representation:

Sign is 1 bit followed by exponent(8 bits) followed by Mantissa(23 bits)

Representation is (-1)^(Sign_bit) * (1.Mantissa) * 2^(Exponent-127)

Exponent=01111111=127 in decimal.

So value=(-1)^1 * (1.101000000....0) * 2^(127-127)

= - 1 * 1.101 * 2^0 ....(in binary) 

= -1 * 1.625 ...(in decimal)

= - 1.625

selected by

Related questions

0 votes
0 votes
0 answers
2
eyeamgj asked Nov 6, 2018
244 views
https://gateoverflow.in/80201/gate1987-1-viiNOT GETTING ITS ANSWER .......
0 votes
0 votes
1 answer
4