sum_decimal#

sum_decimal(numbers)[source]#

Decimal safe sum().

Looks like Python will fail to sum plus and minus decimals together even if they cancel each out:

57602384161.6838278325398013034137975573193695174227082184047361995798525240101
-57602384161.6838278325398013034137975573193695174227082184047361995798525240101

0E-67
Parameters:

numbers (Iterable[Decimal]) – Incoming Decimals to sum

Return type:

Decimal