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.
See also: