English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
log10The () function returns the logarithm of a number to the10Logarithm to the base.
log10(num)
num-To calculate the logarithm of a value.
log10The () function returns the logarithm of a number to the10Logarithm to the base.
<?php echo(log10(1)); ?>
Output Result
0
Let's see another example-
<?php echo(log10(0)); ?>
Output Result
-INF
Let's see another example-
<?php echo(log10(10)); echo(log10(2.7)); ?>
Output Result
10.43136376415899