Returns the base 10 logarithm of a distinct number:
<?phpecho(log10(2.7183) . "<br>");echo(log10(2) . "<br>");echo(log10(1) . "<br>");echo(log10(0) );?>The log10() function returns the base 10 logarithm of a number.
log10( number );
parameter | describe |
---|---|
number | Required. Specifies the value of the logarithm to be calculated. |
Return value: | The base 10 logarithm of number . |
---|---|
Return type: | Float |
PHP version: | 4+ |