Menu Home

exp

osbo.com | PHP | Functions | exp

Calculates the exponent of e

Syntax

exp ( float $arg ) : float

Parameters

arg

The argument to process

Return

'e' raised to the power of arg

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

Examples

<?

$arg = 0.01234;

$return = exp($arg);

echo $return;

?>
1.0124164519487

PHP