log10()
log10(x) returns log of input number x with base 10
import math
print(math.log10(2)) # 0.3010299956639812
print(math.log10(4)) # 0.6020599913279624
print(math.log10(5)) # 0.6989700043360189
Using negative number
For any value less than or equal to 0 , we will get ValueError
import math
print(math.log10(-2))
print(math.log10(0))
Above code will generate error.
« log2
log1p() log()
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
plus2net.com