← All built-ins / log10()

log10()

log10(mixed $number): float

Parameters

NameTypeDescription
$numberfloat|intpositive input

Return value

Base-10 logarithm.

Example

echo log10(1000), " ", round(log10(500), 3);
3 2.699

See also

log()log2()