remainder method

BigRational remainder(
  1. BigRational other
)

other The divisor Returns a new BigRational representing the remainder of the division.

Implementation

BigRational remainder(BigRational other) {
  return this - (this ~/ other) * other;
}