PyDocs

Nav

Numeric and Mathematical Modules

Decimal.log10

decimal

method of Decimal
  • Decimal.log10(context=None)
Return the base ten 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.log10
0 Notes
No notes for Decimal.log10