IMath.Log10

Fore Syntax

Log10(Value: Double): Double;

Fore.NET Syntax

Log10(Value: double): double;

Parameters

Value. Positive real number.

Description

The Log10 method returns a base-10 logarithm of the number.

Comments

Parameter value cannot be empty.

To get natural logarithm, use the IMath.Ln method.

Fore Example

To execute the example, add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: Double;
Begin
    r := Math.Log10(86);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the result of decimal logarithm calculation equal to 1.93449845124357.

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.Log10(86);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

See also:

IMath