Description:
Returns the natural logarithm of a number.
In the PROMOTIC system it is better to use the Pm.LogN method.
Syntax:
Double Log(Double number)
Parameters:
number | (Double) Number greater than 0 |
---|
Note:
The natural logarithm is the logarithm to the base
e. The constant
e is approximately
2.718282.
You can calculate base-
n logarithms for any number
x by dividing the natural logarithm of
x by the natural logarithm of
n as follows:
Example:
VBScriptSelect and copy to clipboard
Dim nLog10
nLog10 = Log(x) / Log(10)