946 views
2 votes
2 votes

how to solve this

1 Answer

0 votes
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
5 votes
0 answers
1
Manu Thakur asked Jan 14, 2018
1,152 views
Can someone please validate if the given range is correct, and we can keep all 0's in Mantissa unlike biased exponent.
9 votes
9 votes
2 answers
2
srestha asked Jan 6, 2018
1,197 views
The decimal value of 0.005 in single precision floating point format is __________________
0 votes
0 votes
0 answers
4
syncronizing asked Feb 28, 2019
497 views
The difference between 201 and next larger double precisionnumber is 2P, if IEEE double precision format is used then thevalue of P is ________.what is next larger precis...