fractions.Decimal.max

Decimal.max(other, context=None)[source]

Returns the larger value.

Like max(self, other) except if one is not a number, returns NaN (and signals if one is sNaN). Also rounds.