IMath.Ln

Fore Syntax

Ln(Value: Double): Double;

Fore.NET Syntax

Ln(Value: double): double;

Parameters

Value. Positive real number.

Description

The Ln method returns a natural logarithm of number.

Comments

To get decimal logarithm, use the IMath.Log10 method.

Fore Example

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.

Fore.NET Example

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:

IMath