Menu Home

expm1

osbo.com | PHP | Functions | expm1

Returns exp(number) - 1, computed in a way that is accurate even when the value of number is close to zero

Syntax

expm1 ( float $arg ) : float

Parameters

arg

The argument to process

Return

'e' to the power of arg minus one

Note: 'e' is the base of the natural system of logarithms, or approximately 2.718282.

Examples

<?

$arg = 0.01234;

$return = expm1($arg);

echo $return;

?>
0.012416451948701

PHP