Pi: Double;
Pi(): double;
The Pi method returns a Pi number (3,14159265358979) truncated to 14 decimal places.
To get the Euler number raised to the specified power, use the IMath.Exp method.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Begin
r := Math.Pi;
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays the Pi number equal to 3,14159265358979.
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.Pi();
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: