exp()


float exp ( float $arg )

Description

exp() returns 'e' raised to the power of $arg (‘e’ is the base of the natural system of logarithms, or approximately 2.718281828459)

※ available F/W version : all

Parameters

Return values

Returns ‘e’ raised to the power of $arg

Example

<?php
$f1 = exp(1);
$f2 = exp(2);

echo "f1 = $f1\r\n";  // OUTPUT: f1 = 2.718281828459
echo "f2 = $f2\r\n";  // OUTPUT: f2 = 7.3890560989307
?>

See also

log()

Remarks

This function is identical to the PHP group’s exp() function.