PyDocs

Nav

Numeric and Mathematical Modules

Decimal.ln

decimal

method of Decimal
  • Decimal.ln(context=None)
Return the natural (base e) logarithm of the operand.

The function always uses the ROUND_HALF_EVEN mode and the result is
correctly rounded.
1 Example
>>> getcontext().prec = 28
>>> Decimal(2).sqrt()
Decimal('1.414213562373095048801688724')
>>> Decimal(1).exp()
Decimal('2.718281828459045235360287471')
>>> Decimal('10').ln()
Decimal('2.302585092994045684017991455')
>>> Decimal('10').log10()
Decimal('1')
from the Python docs
See Also
No see-alsos for decimal/Decimal.ln
0 Notes
No notes for Decimal.ln