HomeMenu
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 $num
): float

Parameters

num

The argument to process.

Return

Returns e to the power of num, minus one.

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

Examples

1 · num

<?

$num = 0.01234;

$return = expm1($num);

echo $return;
0.012416451948701