Home  |  Delphi .net Home  |  System.Single  |  IsPositiveInfinity Method
  
IsPositiveInfinity  
Method  
Returns true if a a given Single is + infinite in value
Single Structure
System NameSpace
CF1.  Function IsPositiveInfinity ( Value : Double ) : Boolean; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
If Value is 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
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

var
  value : Single;

begin
  value := 1/0;

  if System.Single.IsPositiveInfinity(value)
  then Console.WriteLine('1/0 is positive infinite')
  else Console.WriteLine('1/0 is not positive inifinite');

  Console.ReadLine;
end.
   1/0 is positive infinite
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author