YouTip LogoYouTip

Func Math Log1P

# PHP log1p() Function [![Image 3: PHP Math Reference](#) PHP Math Reference](#) ## Example Returns log(1+number) for different numbers: <?php echo(log1p(2.7183) . "
"); echo(log1p(2) . "
"); echo(log1p(1) . "
"); echo(log1p(0)); ?> [Run Example Β»](#) * * * ## Definition and Usage The log1p() function returns log(1+number), and can calculate accurate results even when the value of _number_ is close to zero. * * * ## Syntax log1p(_number_); | 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 now available on all platforms. | * * PHP Math Reference](#)
← Func Math MaxFunc Math Bindec β†’