ID EN
Decimal

compare_total_mag

Python 3.11

Compare two operands using their abstract representation rather than their value as in compare_total(), but ignoring the sign of each operand. x.compare_total_mag(y) is equivalent to x.copy_abs().compare_total(y.copy_abs()).

Syntax

PYTHON
compare_total_mag(other, context=None)

See Also

compare_total()