Math.log10(x) +
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
Math.log(x)

Arguments
x: A number or expression > 0.

Returns
A number.

Description
Returns the log base 10 of x.

Sample
Math.log10(2
); // returns 1, the log base 10 of 10
Math.log10(100
); // returns 2, the log base 10 of 100

Note: Requires Advanced Math Support. See here for more information

See Also
Math.exp(), Math.log(), Converting Log Base
Math.pow() and Math.sqrt().