Cldr.Math.log10
You're seeing just the function
log10
, go back to Cldr.Math module for more information.
Specs
log10(number_or_decimal()) :: number_or_decimal()
Return the log10 of a number.
number
is an integer, a float or a Decimal- For integer and float it calls the BIF
:math.log10/1
function. - For
Decimal
,log10
is is rolled by hand using the identifylog10(x) = ln(x) / ln(10)
- For integer and float it calls the BIF
Examples
iex> Cldr.Math.log10(100)
2.0
iex> Cldr.Math.log10(123)
2.089905111439398
iex> Cldr.Math.log10(Decimal.new(9000))
#Decimal<3.953767554157656512064441441>