Returns the natural logarithm (base e ) of a number.
SyntaxMath.log( number )
If number is positive, this function returns the natural logarithm of the number. If number is negative, this function returns NaN. If number is 0, this function returns -Infinity.
ExamplesThe following code shows how to use this function.
var numArr = [ 45.3, 69.0, 557.04, 0.222 ];
for (i in numArr) {
document.write(Math.log(numArr[i]));
document.write("<br/>");
}
See also Other articles
Attributions
Microsoft Developer Network: Windows Internet Explorer JavaScript reference Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4