operator / method

Rational operator /(
  1. Rational other
)

Division operator.

Implementation

Rational operator /(Rational other) => Rational(
      numerator * other.denominator,
      denominator * other.numerator,
    );