math.log

From ComputerCraft
Jump to navigation Jump to search

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

Returns the natural logarithms of a number.

ExampleExampleGet natural logarithms
Get the natural logarithms of 5 and print it
Code
print(math.log(5))
Output 1.6094379124341