IMath.Power

Fore Syntax

Power(Value: Double; PowerValue: Double): Double;

Fore.NET Syntax

Power(Value: double; PowerValue: double): double;

Parameters

Value. A real number raised to the power.

PowerValue. Power value.

Description

The Power method returns the result of raising a real number to power.

Comments

Values of input parameters cannot be empty.

If the Value parameter is set as a negative number, the PowerValue parameter mjst be integer, otherwise the function returns error.

Fore Example

To execute the example, add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: Double;
Begin
    r := Math.Power(4,1.25);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the result of raising to the power equal to 5.65685424949238.

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.Power(4,1.25);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

See also:

IMath