Return the base-10 logarithm of different numbers:
<?php
echo(log10(2.7183) . "<br>");
echo(log10(2) . "<br>");
echo(log10(1) . "<br>");
echo(log10(0));
?>
Try it Yourself »
The log10() function returns the base-10 logarithm of a number.
log10(
number);
Parameter | Description |
---|---|
number | Required. Specifies the value to calculate the logarithm for |
Return Value: | The base-10 logarithm of number |
---|---|
Return Type: | Float |
PHP Version: | 4+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!