Description |
If Value is NegativeInfinity or PositiveInfinity then the result is true otherwise false.
An infinite value results from a division by zero.
|
| Notes | Static methods are not methods of an object - they are simply class functions or procedures available at any time.
|
|
Microsoft MSDN Links |
System
System.Single
|
|
|
A simple example |
program Project1;
{$APPTYPE CONSOLE}
var
value : Single;
begin
value := 1/0;
if System.Single.IsInfinity(value)
then Console.WriteLine('1/0 is infinite')
else Console.WriteLine('1/0 is not inifinite');
Console.ReadLine;
end.
| Show full unit code | 1/0 is infinite
|
|
|
|