Log(Value: Double; Base: Double): Double;
Value. Positive real number, for which logarithm is calculated.
Base. Logarithm base.
The Log method returns a logarithm of the number by the specified base.
Values of input parameters cannot be empty.
The Base parameter value must belong to the (0;1) U (1;inf) intervals.
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: