ID EN
Decimal

exp

Python 3.11

Return the value of the (natural) exponential function e**x at the given number. The result is correctly rounded using the ROUND_HALF_EVEN rounding mode.

Syntax

PYTHON
exp(context=None)

Examples

Example 1
PYTHON
>>> Decimal(1).exp()
Decimal('2.718281828459045235360287471')
>>> Decimal(321).exp()
Decimal('2.561702493119680037517373933E+139')

See Also

ROUND_HALF_EVEN