Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

expm1

Description

The expm1 of Math for PHP 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

1

<?

$arg = 0.01234;

$return = expm1($arg);

echo $return;

?>
0.012416451948701
HomeMenu