Power(Value: Double; PowerValue: Double): Double;
Power(Value: double; PowerValue: double): double;
Value. A real number raised to the power.
PowerValue. Power value.
The Power method returns the result of raising a real number to power.
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.
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.
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: