decimal.Decimal.next_toward()

next_toward(other, context=None) If the two operands are unequal, return the number closest to the first operand in the direction of the second operand. If both operands are numerically equal, return a copy of the first operand with the sign set to be the same as the sign of the second operand.

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.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.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.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.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.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.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.

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.