示例#1
0
        public static Fraction operator /(Fraction f, double d)
        {
            Fraction tmp = new Fraction(d);

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

            return(new Fraction(tmp.Numerator * f.Denominator, tmp.Denominator * f.Numerator));
        }