w3resource

PHP: log1p() function

Description

The log1p() function returns log(1+a), where a is a number, computed in a way that is accurate even when the value of a is close to zero.

Version:

(PHP 4 and above)

Syntax:

log1p(a)

Parameter:

Name Description Required /
Optional
Type
a A number Required Float

Return value:

log(1+a).

Value Type: Float.

See also

PHP Function Reference

Previous: log10
Next: log



Follow us on Facebook and Twitter for latest update.