log1p
(PHP 4 >= 4.0.7, PHP 5)
log1p — Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero
Description
float log1p
( float $number
)
Warning
這個函數是實驗性質的。這個函數的行為、名稱、和關於此函數的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。 使用此延伸需自行承擔風險。
log1p() returns log(1 + number ) computed in a way that is accurante even when the value of number is close to zero. log() might only return log(1) in this case due to lack of precision.
Note: 此函數不適用於 Windows 平台。
Parameters
- number
-
The argument to process
Return Values
log(1 + number )