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