math.log10 (x)

Returns the base-10 logarithm of x.