Type Function Library math.* Return value Number Revision 2017.3060 Keywords log10, base-10 See also math.exp()
math.pow()
Returns the base-10 logarithm of x
.
print(math.log10(10)) ----> 1 print(math.log10(1)) ----> 0 print(math.log10(0)) ----> -inf print(math.log10(-1)) ----> nan