PHP log10() Funzione
Esempio
Restituisce il logaritmo in base 10 di numeri diversi:
<?php
echo(log10(2.7183) . "<br>");
echo(log10(2) . "<br>");
echo(log10(1) . "<br>");
echo(log10(0));
?>
Definizione e utilizzo
La funzione log10() restituisce il logaritmo in base 10 di un numero.
Sintassi
log10(number);
Valori dei parametri
Parameter | Description |
---|---|
number | Required. Specifies the value to calculate the logarithm for |
Dettagli tecnici
Valore di ritorno: | Il logaritmo in base 10 del numero |
---|---|
Tipo di reso: | Galleggiante |
Versione PHP: | 4+ |
❮ Riferimento matematico PHP