public static Fraction operator -(Fraction a, Fraction b) { Fraction fraction = new Fraction((a.Num * b.Den) - (b.Num * a.Den), a.Den * b.Den); return(fraction.Normalized); }
public static Fraction operator /(Fraction a, Fraction b) { Fraction fraction = new Fraction(a.Num * b.Den, a.Den * b.Num); return(fraction.Normalized); }
int IComparable.CompareTo(object obj) { Fraction fraction = (Fraction)obj; return(this.Value.CompareTo(fraction.Value)); }