S
Skybuck Flying
Hello,
I was just wondering what happens if "Infinity" is added to "Infinity" when
it comes to floating point numbers ?
And also what happens if "Negative Infinity" is added to "Negative
Infinity"... ?
In Delphi these are defined as follows (in the math.pas unit):
const
Infinity = 1.0 / 0.0;
NegInfinity = -1.0 / 0.0;
As far as I know this conforms to some kind of floating point standard.
I haven't tried to add these two numbers together yet, but I will soon try
it out.
I am just wondering from a theoretical point of view what should happen ?
Should it wrap back from infinity to infinity ?
Should it wrap back from negative infinity to negative infinity ?
Or will perhaps something weird happen ?
Bye,
Skybuck.
I was just wondering what happens if "Infinity" is added to "Infinity" when
it comes to floating point numbers ?
And also what happens if "Negative Infinity" is added to "Negative
Infinity"... ?
In Delphi these are defined as follows (in the math.pas unit):
const
Infinity = 1.0 / 0.0;
NegInfinity = -1.0 / 0.0;
As far as I know this conforms to some kind of floating point standard.
I haven't tried to add these two numbers together yet, but I will soon try
it out.
I am just wondering from a theoretical point of view what should happen ?
Should it wrap back from infinity to infinity ?
Should it wrap back from negative infinity to negative infinity ?
Or will perhaps something weird happen ?
Bye,
Skybuck.