Cldr.Math.log

You're seeing just the function log, go back to Cldr.Math module for more information.

Return the natural log 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 the log is rolled by hand.

Examples

iex> Cldr.Math.log(123)
4.812184355372417

iex> Cldr.Math.log(Decimal.new(9000))
#Decimal<9.103886231350952380952380952>