public static Fraction operator /(Fraction f, double d) { Fraction tmp = new Fraction(d); return(new Fraction(f.Numerator * tmp.Denominator, f.Denominator * tmp.Numerator)); }
public static Fraction operator /(double d, Fraction f) { Fraction tmp = new Fraction(d); return(new Fraction(tmp.Numerator * f.Denominator, tmp.Denominator * f.Numerator)); }