Returns the modulo of this Rat and other.
other
Rat operator %(Rat other) { return Rat(n * other.d % (d * other.n), d * other.d); }