A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Math/log below:

log ยท WebPlatform Docs

log Summary

Returns the natural logarithm (base e ) of a number.

Syntax
Math.log( number )
number
A number.
Return Value

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.

Examples

The 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

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