(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)
log1p — 返回 log(1 + number),甚至當 number 的值接近零也能計算出準確結果
$number): float
log1p() 返回 log(1 + number),甚至當
number 的值接近零也能計算出準確結果。
log() might only return log(1) in this case
due to lack of precision.
number要處理的參數
log(1 + number)
| 版本 | 說(shuō)明 |
|---|---|
| 5.3.0 | 此函數在所有平臺上均可用 |