remainder method

Rational remainder(
  1. Rational other
)

Returns the remainder from dividing this Rational by other.

Implementation

Rational remainder(Rational other) =>
    this - (this ~/ other).toRational() * other;