PyDocs

Nav

Numeric and Mathematical Modules

Decimal.sqrt

decimal

method of Decimal
  • Decimal.sqrt(context=None)
Return the square root of the argument to full precision.

The result is correctly rounded using the ROUND_HALF_EVEN rounding
mode.
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.sqrt
0 Notes
No notes for Decimal.sqrt