Javatpoint Logo
Javatpoint Logo

PHP log1p() Function

The log1p() function is predefined php math function which returns log(1+number). It computes accurate even when the value of $number is close to zero.

Syntax:

Parameter Description Required/Optional
Number Specify the number to process Required

Example1

Output:

Your number is: 6
By using log10() function your number is : 1.9459101490553

Example2

Output:

Your number is: -0.3
By using log10() function your number is : -0.35667494393873

Example3

Output:

Your number is: 2.7183
By using log10() function your number is : 1.3132665745863

Example4

Output:

Your number is: 0
By using log10() function your number is : 0

Next TopicPHP Math





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA