math.log10

From ComputerCraft
Jump to navigation Jump to search

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

Returns the base-10 logarithms of a number.

ExampleExampleGet base-10 logarithms
Get the base-10 logarithms of 5 and print it
Code
print(math.log10(5))
Output 0.69897000433602