public void DecreaseBy(Rational other)
 {
     Numerator    = Numerator * other.Denominator - Denominator * other.Numerator;
     Denominator *= other.Denominator;
 }
Esempio n. 2
0
 public void DecreaseBy(Rational other) //subtraction of the fractions
 {
     Normalize(other);
     Numerator    = (Numerator * other.Denominator) - (Denominator * other.Numerator);
     Denominator *= other.Denominator;
 }