decimal.Decimal.next_minus()

next_minus(context=None) Return the largest number representable in the given context (or in the current thread’s context if no context is given) that is smaller than the given operand.

decimal.Decimal.min_mag()

min_mag(other, context=None) Similar to the min() method, but the comparison is done using the absolute values of the operands.

decimal.Decimal.min()

min(other, context=None) Like min(self, other) except that the context rounding rule is applied before returning and that NaN values are either signaled or ignored (depending on the context and whether they are signaling or quiet).

decimal.Decimal.max_mag()

max_mag(other, context=None) Similar to the max() method, but the comparison is done using the absolute values of the operands.

decimal.Decimal.max()

max(other, context=None) Like max(self, other) except that the context rounding rule is applied before returning and that NaN values are either signaled or ignored (depending on the context and whether they are signaling or quiet).

decimal.Decimal.logical_xor()

logical_xor(other, context=None) logical_xor() is a logical operation which takes two logical operands (see Logical operands). The result is the digit-wise exclusive or of the two operands.

decimal.Decimal.logical_or()

logical_or(other, context=None) logical_or() is a logical operation which takes two logical operands (see Logical operands). The result is the digit-wise or of the two operands.

decimal.Decimal.logical_invert()

logical_invert(context=None) logical_invert() is a logical operation. The result is the digit-wise inversion of the operand.

decimal.Decimal.logical_and()

logical_and(other, context=None) logical_and() is a logical operation which takes two logical operands (see Logical operands). The result is the digit-wise and of the two operands.

decimal.Decimal.logb()

logb(context=None) For a nonzero number, return the adjusted exponent of its operand as a Decimal instance. If the operand is a zero then Decimal('-Infinity') is returned and the DivisionByZero flag is raised. If the operand is an infinity then Decimal('Infinity') is returned.