Home  |  Delphi .net Home  |  System.Math  |  Pow Method
  
Pow  
Method  
Raises a number to a specified power
Math Class
System NameSpace
CF1.  Function Pow ( Number : Double; Power : Double ) : Double; Static;
CF : Methods with this mark are Compact Framework Compatible
Description
Raises the Number value to the Power value.
Notes
The result may be Infinity or NegativeInfinity if the Double.Max or Double.Min values are exceeded respectively.

Static methods are not methods of an object - they are simply class functions or procedures available at any time.
Microsoft MSDN Links
System
System.Math
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

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

var
  result : Double;
begin
  result := System.Math.Pow(4, 2);
  Console.WriteLine('Pow(4, 2)       = {0}', result.ToString);

  result := System.Math.Pow(1E100, 100);
  Console.WriteLine('Pow(1E100, 100) = {0}', result.ToString);

  Console.ReadLine;
end.
   Pow(4, 2)       = 16
   Pow(1E100, 100) = Infinity
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author