← All docs

log10()

Returns the base-10 logarithm of a number.

log10()

function log10(float $num): float

Returns the base-10 logarithm of a number.

Parameters:

  • $num (float)

Returns: float

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how log10 is implemented in the compiler, see the internals page.