PHP expm1() Function

PHP Math Reference : Return exp() - 1

Definition and Usage

The expm1() function returns exp(x) - 1.

Syntax

expm1(x);

Parameter Values

Parameter Description
x Required. Specifies the exponent

Technical Details

Return Value: 'e' raised to the power of x minus 1
Return Type: Float
PHP Version: 4.1+
PHP Changelog: PHP 5.3 - expm1() is now available on all platforms

❮ PHP Math Reference