PowerI(Value: Integer; PowerValue: Integer): Double;
Value. An integer number raised to power.
PowerValue. Power value.
The PowerI method returns the result of raising an integer number to power.
To get a square root from the number, use the IMath.Sqrt method.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.PowerI(5,2);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the result of raising to the power equal to 25.
See also: