log10

(PHP 4, PHP 5, PHP 7, PHP 8)

log10Base-10 logarithm

Description

log10(float $num): float

Returns the base-10 logarithm of num.

Parameters

num

The argument to process

Return Values

The base-10 logarithm of num

See Also

  • log() - Natural logarithm

add a note add a note

User Contributed Notes 1 note

up
-60
smalladi at lexgen dot com
22 years ago
Note that log of a negative or undefined number returns -Infinity.
To Top