math.exp

From ComputerCraft
Jump to: navigation, search

math.exp
Function
Syntax
math.exp()
Returns number
API math
Source Lua (source)

Returns e raised to the power of num.

ExampleExampleCompute e
Prints the approximate value of Euler's constant,
Code
print(math.exp(1))
Output
2.718281828459