PyDocs

Nav

Numeric and Mathematical Modules

Decimal.compare_total_mag

decimal

method of Decimal
  • Decimal.compare_total_mag(other, context=None)
As compare_total(), but ignores the sign of each operand.

x.compare_total_mag(y) is equivalent to
x.copy_abs().compare_total(y.copy_abs()).

This operation is unaffected by context and is quiet: no flags are
changed and no rounding is performed. As an exception, the C version
may raise InvalidOperation if the second operand cannot be converted
exactly.
0 Examples
No examples for decimal/Decimal.compare_total_mag.
See Also
No see-alsos for decimal/Decimal.compare_total_mag
0 Notes
No notes for Decimal.compare_total_mag