log1p
Description
The log1p of Math for PHP returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero.
Syntax
log1p ( float $number ) : float
Parameters
number
The argument to process
Return
log(1 + number)
Examples
1
<? $number = 0.01234; $return = log1p($number); echo $return; ?>
0.012264482819982