math.log10
math.log10 Function | |
---|---|
Syntax math.log10(
| |
Returns | number |
API | math |
Source | Lua (source) |
Returns the base-10 logarithms of a number.
|
|||
Get the base-10 logarithms of 5 and print it | |||
Code | <nowiki>
print(math.log10(5))
</nowiki>
|
||
Output | 0.69897000433602 |
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CC:Tweaked |
|
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.