edited by
6,165 views
2 votes
2 votes
Which of the given number has its IEEE-754 32-bit floating-point representation as $(0 \ 10000000\ 110 0000 0000 0000 0000 0000)$

a) 2.5

b) 3.0

c) 3.5

d) 4.5
edited by

2 Answers

Best answer
7 votes
7 votes

Sign = 0

Exponent= 10000000

Mantissa = 110 0000 0000 0000 0000 0000

Actual exponent= Exponent- Bias =128-127 =1

Value=(-1)s *(1.110000.......) * 21

      =(-1)0 ⨉(1⨉20+ 1⨉2-1 + 1⨉ 2-2 + 0⨉2-3+........)⨉21 =3.5

selected by
1 votes
1 votes

Answer is : 3.5

How to convert 32 bit floating point representation in to decimal ? 

https://youtu.be/TZI6Fd4WmIs

Step 1 : Partition(LtR) the 32 bits in to sign bit(1), exponent bits(8), Mantissa bits (23)

Here in this example - 0 10000000 11000000000000000000000

Step 2 : sign bit is 0. so the decimal value is (-1)0. =>    positive.

Step 3 : find p.      Exponent = 127 + p.

here exponent =128

hence p= 1

Step 4 : Write 1.11000000000000000000000                             

now move decimal point 'p' places to the right. hence we get 

11.1000000000000000000000

=>    this is equivalent to 3.5

and that's the answer.

Related questions

5 votes
5 votes
2 answers
1
gate_forum asked Oct 14, 2015
1,269 views
32 bit floating point representation of decimal number 3.284*10^4 is(A) 010001101111110111000000000000(B) 110001101111110111000000000000(C) 011010101111110111000000..(D) ...
0 votes
0 votes
0 answers
2
tusharp asked Dec 3, 2018
829 views
Can someone please help in highlighted part. Thanks
1 votes
1 votes
3 answers
4
AnilGoudar asked Feb 7, 2018
1,305 views
In IEEE floationg point representation, the hexadecimal number $0xC0000000$ corresponds to ?$-3.0$$-1.0$$-4.0$$-2.0$