exp

Returns e raised to the power of a number, e number . The predefined variable e is the base of the natural logarithm, which is 2.718.

float exp(float number)

number is the exponent to which you want to raise e.

Examples

exp(1)

Returns 2.718, the value of e.

exp(2)

Returns 7.389, the value of e 2 .