IMath.PowerI

Fore Syntax

PowerI(Value: Integer; PowerValue: Integer): Double;

Fore.NET Syntax

PowerI(Value: integer; PowerValue: integer): double;

Parameters

Value. An integer number raised to power.

PowerValue. Power value.

Description

The PowerI method returns the result of raising an integer number to power.

Comments

To get a square root from the number, use the IMath.Sqrt method.

Fore Example

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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.MathFin;

Public Shared Sub Main(Params: StartParams);
Var
    r: Double;
    Math: MathClass = New MathClass();
Begin
    r := Math.PowerI(5,2);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

See also:

IMath