×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2014.2482 | Released: 30 Oct 2014, 1:36am | What's New | Download Now

math.exp()

Description:

Returns e (the base of natural logarithms) raised to a given power.

Syntax:

math.exp (x)

Example:

print (math.exp(0))   ---> 1
print (math.exp(1))  ---> 2.718281828459

Parameters:

x
A number.

Returns:

A number.

Remarks:
Supported on operating systems and platforms for build numbers shown:
  • Mac OS X:
    Corona SDK 1.0
  • Windows:
    Corona SDK 2.0
  • iOS:
    Corona SDK 1.0
  • Android:
    Corona SDK 2.0