- #1
- 160
- 0
if the floatingpoint number is 1111111111111111111111111111111,
the answer should be NaN instead of infinity rite?
the answer should be NaN instead of infinity rite?
Whether you convert it to decimal or not does not really matter. In the standard floating point systems (IEEE SP and IEEE DP) there are two special cases for representing Inf and NaN. I believe (though I'm not sure) that both of these have an exponent with only 1's. Which of the cases it is should then be decided by the value of the mantissa.denian said:sorry. it should be right, not rite. pardon me.
from your statement, i conclude that the exact answer should be infinity.
am i right?
what if, i have this floating point number : 11111111100000000000000000000000
and i am to convert this floating point number to decimal, the answer should be infinity, isn't it?
then can i summarise that if the exponential is all 1's, it will be infinity when converted to decimal?
thank you.