Python log10 function

log10() function caculates the base 10 logarithm of x. It's a method of math module.

>>> import math
>>> math.log10(10)
1.0
>>> math.log10(2)
0.3010299956639812
>>> math.log10(100)
2.0
















endmemo.com © 2024  | Terms of Use | Privacy | Home