Easy Tutorial
❮ Func Cal Jdtogregorian Func Math Asinh ❯

PHP log1p() Function

PHP Math Reference Manual

Example

Returns the log(1+number) for different numbers:


Definition and Usage

The log1p() function returns log(1+number), and it can compute an accurate result even when the value of number is close to zero.


Syntax

Parameter Description
number Required. Specifies the number to process.

Technical Details

Return Value: log(1+number)
Return Type: Float
--- ---
PHP Version: 4.1+
--- ---
PHP Changelog: PHP 5.3: The log1p() function is available on all platforms.
--- ---
❮ Func Cal Jdtogregorian Func Math Asinh ❯