Home >>Python math Module >Python math.log10() Method
Python math.log10() method is used to returns the base-10 logarithm of the given input number.
Syntax:math.log10(x)
Parameter | Description |
---|---|
x | This is a required parameter. It defines the value to calculate the logarithm for. |
import math
print(math.log10(10))
print(math.log10(2))
print(math.log10(1))