View Single Post
  #39 (permalink)  
Old 04-23-2008, 07:29 AM
sureshbabu sureshbabu is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Location: India
Posts: 101
sureshbabu is on a distinguished road
Send a message via AIM to sureshbabu Send a message via MSN to sureshbabu Send a message via Yahoo to sureshbabu Send a message via Skype™ to sureshbabu
Default Re: Mathematical functions in PHP

expm1()
The expm1() function returns the value of Ex-1, where E is Euler's constant (approximately 2.7183) and x is the number passed to it.

Syntax

expm1(x)

Parameter Description
x Required. A number

Example

In the following example we will use the expm1() function on different numbers:

<?php
echo(expm1(1) . "<br />");
echo(expm1(-1) . "<br />");
echo(expm1(5) . "<br />");
echo(expm1(10))
?>
__________________
Thanks
Regards
Sureshbabu Harikrishnan
+91 9884320017
Reply With Quote