Math.log10()

Get the base 10 logarithm of a Number.

Signature

Math.log10(x: Number) => Number

Description

Gets the base 10 logarithm of a provided Number.

Parameters

Parameter Type Required Description

x

Number

true

Number greater than or equal to zero.

Return value

Type Description

Number

Base 10 logarithm of the provided number.

Examples

Math.log10(2)
0.3010299956639812
\