LogN - method of the Pm object
Description:
Returns logarithm of a number.
Syntax:
Double LogN(Double nValue, Long nBase)
Parameters:
nValue | (Double) number greater than 0. |
nBase | (Long) logarithm base
0 - natural logarithm (i.e. the base is e)
2 - the binary logarithm (i.e. the base is 2)
10 - decadic logarithm (i.e. the base is 10) |
---|
Example:
JavaScriptVBScriptSelect and copy to clipboard
var nVal = Pm.LogN(100, 10);
// Returns 2
Dim nVal
nVal = Pm.LogN(100, 10)
' Returns 2