IsInfinity(Value: Double): Boolean;
Value. The checked real value.
The IsInfinity method checks if the value of the variable is equivalent to positive or negative infinity.
Available values:
True. Variable value is equivalent to positive or negative infinity.
False. Variable value is not equivalent to positive or negative infinity.
Sub UserProc;
Var
B: Boolean;
D: Double;
Begin
D := Double.PositiveInfinity;
B := Double.IsInfinity(D);
End Sub UserProc;
After executing the example the "B" variable contains the attribute that determines whether the value of the "D" variable is equivalent to positive or negative infinity, that is, to the value 1.#INF or -1.#INF.
See also: