IMath.Log

Syntax

Log(Value: Double; Base: Double): Double;

Parameters

Value. Positive real number, for which logarithm is calculated.

Base. Logarithm base.

Description

The Log method returns a logarithm of the number by the specified base.

Comments

Values of input parameters cannot be empty.

The Base parameter value must belong to the (0;1) U (1;inf) intervals.

Example

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

Sub UserProc;
Var
    r: Double;
Begin
    r := Math.Log(8,2);
    Debug.WriteLine(r);
End Sub UserProc;

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

See also:

IMath