public static Rational Max(Rational lhs, Rational rhs) { return(lhs > rhs ? lhs : rhs); }
public Rational GreatestCommonFactor(Rational rational) { return(new Rational(GreatestCommonFactor(this.numerator, rational.numerator), GreatestCommonFactor(this.denominator, rational.denominator))); }
public static Rational Min(Rational lhs, Rational rhs) { return(lhs < rhs ? lhs : rhs); }