(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)
expm1 — Returnsexp($num) - 1
, computed in a way that is accurate even when the value of number is close to zero
expm1() returns the equivalent toexp($
computed in a way that is accurate even if the value ofnum
) - 1num
is near zero, a case whereexp($
would be inaccurate due to subtraction of two numbers that are nearly equal.num
) - 1
num
The argument to process
e
to the power ofnum
, minus one.