← All built-ins / log10()
log10()
log10(mixed $number): float
Parameters
| Name | Type | Description |
|---|---|---|
| $number | float|int | positive input |
Return value
Base-10 logarithm.
Example
echo log10(1000), " ", round(log10(500), 3);
3 2.699
| Name | Type | Description |
|---|---|---|
| $number | float|int | positive input |
Base-10 logarithm.
echo log10(1000), " ", round(log10(500), 3);
3 2.699