Returns the base-10 logarithm of a number