ID EN
Decimal

fma

Python 3.11

Fused multiply-add. Return self*other+third with no rounding of the intermediate product self*other.

Syntax

PYTHON
fma(other, third, context=None)

Examples

Example 1
PYTHON
>>> Decimal(2).fma(3, 5)
Decimal('11')