operator ~/ method

BigInt operator ~/(
  1. Rat other
)

Returns the truncating division of this Rat by other.

Implementation

BigInt operator ~/(Rat other) {
  return (n * other.d) ~/ (d * other.n);
}