PHP 7.1.0 Alpha 2 Released

log10

(PHP 4, PHP 5, PHP 7)

log10Base-10 logarithm

Descrierea

float log10 ( float $arg )

Returns the base-10 logarithm of arg.

Parametri

arg

The argument to process

Valorile întoarse

The base-10 logarithm of arg

A se vedea și

  • log() - Natural logarithm

add a note add a note

User Contributed Notes 2 notes

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