IMath.Power

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.

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.

See also:

IMath