exp

PHP 4, PHP 5, PHP 7, PHP 8
exp - Calculates the exponent of e

exp( float$num ): float

Returns e raised to the power of num.

Note:

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

Parameters

num

The argument to process

Return Values

'e' raised to the power of num

Related Functions

Example of exp

Show all examples for exp

PHP Version:


Function exp:

Mathematical Functions Functions

Most used PHP functions