search
Log In
1 vote
313 views

how to solve this

in Digital Logic 313 views
0
when E=255 and M=0 it denotes special value +infinity or - infinity.

when E=255 and M !=0 it denotes NAN.

so option b and c are eliminated.

don't know about a and d option.
0
Here while storing in 32 bit format E = 130+127 = 257.. which will overflow..  but what to do further?
1
Exponent overflow: A positive exponent exceeds the maximum possible exponent value. In some systems, this may be designated as + infinity or - infinity.

Source:William Stallings.
0
so answer should be option b?
0
No. (d) only.
0
why ?  please elaborate.
0
I dont know about special value + infinity.

1 Answer

0 votes

Infinities

The infinities of the extended real number line can be represented in IEEE floating-point datatypes, just like ordinary floating-point values like 1, 1.5, etc. They are not error values in any way, though they are often (but not always, as it depends on the rounding) used as replacement values when there is an overflow. Upon a divide-by-zero exception, a positive or negative infinity is returned as an exact result. An infinity can also be introduced as a numeral (like C's "INFINITY" macro, or "∞" if the programming language allows that syntax).

IEEE 754 requires infinities to be handled in a reasonable way, such as

  • (+∞) + (+7) = (+∞)
  • (+∞) × (−2) = (−∞)
  • (+∞) × 0 = NaN – there is no meaningful thing to do

So, it will round to +infinite . https://en.wikipedia.org/wiki/Floating-point_arithmetic

Related questions

5 votes
0 answers
1
486 views
Can someone please validate if the given range is correct, and we can keep all 0's in Mantissa unlike biased exponent.
asked Jan 14, 2018 in Digital Logic Manu Thakur 486 views
7 votes
2 answers
2
318 views
The decimal value of 0.005 in single precision floating point format is __________________
asked Jan 6, 2018 in Digital Logic srestha 318 views
2 votes
0 answers
3
410 views
Question 1 (a) Convert the positive decimal number 17.45 to IEEE 754 single precision representation. Show all of your working out. [15 marks] (b) In IEEE 754 single precision, 1.25 is represented as: 0 01111111 01000000000000000000000 In IEEE 754 single precision 1.26 is ... IEEE 754 representation of 1.26 than 1.25. [10 marks] (c) Why is the exponent biased in IEEE representation? [5 marks]
asked Jan 5, 2018 in GATE Theo 410 views
0 votes
0 answers
4
155 views
The difference between 201 and next larger double precision number is 2P , if IEEE double precision format is used then the value of P is ________. what is next larger precision number here ?
asked Feb 28, 2019 in Digital Logic syncronizing 155 views
...