edited by
7,413 views
2 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

2 Answers

Best answer
7 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 1 vote

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.

Position:
Show:

Related questions

1 1 vote
1 1 answer
759
759 views
Warrior2311 asked Oct 9, 2024
759 views
Why Value of Exponent can't be Zero in case of Implicit Normalisation?
5 5 votes
2 2 answers
1.6k
1.6k views
gate_forum asked Oct 14, 2015
1,647 views
32 bit floating point representation of decimal number 3.284*10^4 is(A) 010001101111110111000000000000(B) 110001101111110111000000000000(C) 011010101111110111000000..(D) ...
0 0 votes
0 0 answers
1.8k
1.8k views
tusharp asked Dec 3, 2018
1,839 views
Can someone please help in highlighted part. Thanks
1 1 vote
0 0 answers
2.6k
2.6k views
Shubhanshu asked Dec 1, 2018
2,621 views
Represent $(2.5)_{10}$ in IEEE 754 Single precision standard:When 1 is implicit.When 1 is explicit.For the part A I am getting:-0100 0000010 0000 And for part B:-0100 000...