Ln(Value: Double): Double;
Ln(Value: double): double;
Value. Positive real number.
The Ln method returns a natural logarithm of number.
To get decimal logarithm, use the IMath.Log10 method.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var r: Double;
Begin
r := Math.Ln(86);
Debug.WriteLine(r);
End Sub UserProc;
After executing the example the console window displays natural logarithm calculation result equal to 4.45434729625351.
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.Ln(86);
System.Diagnostics.Debug.WriteLine(r);
End Sub;
See also: