PHP log1p

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

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.