VBS tutorial: function log function

Time:2021-10-24

Log function

Returns the natural logarithm of a number.

Log(number)

numberParameter is any valid numeric expression greater than 0.

explain

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