Math.log() (Function)

The natural logarithm of the passed in value.


ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise Server version - 2.0
Opera - 3.0
Property/method value type:Number primitive
JavaScript syntax:-Math.log(aValue)
Argument list:aValueA meaningful numeric value

This function returns the natural (base e) logarithm of the input argument.

This function is the inverse of the Math.exp() function.

Special boundary conditions that affect the results are:

< 0NaN

The exact value yielded by this function may vary slightly from implementation to implementation due to differences in the underlying precision of the implementations math routines and the specific algorithm selected to evaluate this function.

See also:Exponent-log function, Math object, Math.exp()


ECMA 262 edition 2 - section -

ECMA 262 edition 3 - section -