TMBASIC
Documentation
Docs
GitHub
TMBASIC Documentation
►
Procedures: Math
Log10
Procedure
Returns the base-10 logarithm of a number. Use the
Log
function for natural (base-e) logarithms.
Declaration
function Log10(x as Number) as Number
Parameters
x
as
Number
— Input number.
Return value
Number
— Base-10 logarithm of
x
.
Example
Code
print Log10(1000)
Output
3