Decimal.compareTotal

int compareTotal(const typeof(this) rhs) const @safe pure nothrow @nogc

IEEE totalOrder: signed zeros (−0 < +0), quantum (1.0 < 1.00) and NaN sign/kind/payload all participate.