Log Function

Tips >>ASP Functions
The Log function returns the natural logarithm of a specified number. The natural logarithm is the logarithm to the base e. Returns the natural logarithm of a number. Any valid numeric expression greater than 0. The constant e is approximately 2.718282.

Calculation of logarithm :-

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:

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

Note :- Negative values are not allowed.


The Syntax of the Log function is :-

Log(number)

Example#1 :-

Code :-
document.write(Log(38.256783227))
Output :-
3.64432088381777


Example#2 :-

Code :-
<% =Log(26.2850411552082) %>
Output :-
3.269
E-mail : sales at virtualsplat dot com

Phone : +91 022 28067978