log()

Gets the logarithm of any number in the specified base. NOTE: this function works best for values that don't rely on a base of Math.E. If you want to find natural log it would be best to simply use Math.log().

This function is valid in v2.5.0 to v2.12.0. This function has been downloaded 12 times.

Parameters

{number} x
The number for which the logarithm will be calculated.
{number} base
The base of the calculated logarithm.

Returns

{number}
The logarithm of x for the specified base.