max_mag(x, y)

Compares the values numerically with their sign ignored.

Related Reading

decimal — Decimal fixed point and floating point arithmetic