VBS tutorial: function log function


Log function

Returns the natural logarithm of a number.


numberParameter is any valid numeric expression greater than 0.


The natural logarithm iseThe logarithm of the base. constanteThe value of is about 2.718282.

usenNatural logarithmic division ofxThe natural logarithm of can be obtained bynBottomxLogarithm of. As follows:

Logn(x) = Log(x) / Log(n)

The following example is a customFunctionProcess, which calculates the logarithm based on 10:

Log10 (x) functionlog10 = log (x) / log (10) end function