PHP 7.0.6 Released

log10

(PHP 4, PHP 5, PHP 7)

log10Base-10 logarithm

Description

float log10 ( float $arg )

Returns the base-10 logarithm of arg.

Parameters

arg

The argument to process

Return Values

The base-10 logarithm of arg

See Also

  • log() - Natural logarithm

User Contributed Notes

jphansen at uga dot edu
4 years ago
Alternatively log(x, 10) may be used.
smalladi at lexgen dot com
14 years ago
Note that log of a negative or undefined number returns -Infinity.
To Top