コード例 #1
0
 public static Fraction operator /(Fraction frac1, double dbl)
 {
     return(!((Fraction)null != frac1) ? (Fraction)null : Fraction.Multiply(frac1, Fraction.Inverse(Fraction.ToFraction(dbl))));
 }
コード例 #2
0
 public static Fraction Divide(Fraction frac1, Fraction frac2)
 {
     return(!((Fraction)null != frac1) || !((Fraction)null != frac2) ? (Fraction)null : Fraction.Multiply(frac1, Fraction.Inverse(frac2)));
 }
コード例 #3
0
 public static Fraction operator /(Fraction frac1, int iNo)
 {
     return(!((Fraction)null != frac1) ? (Fraction)null : Fraction.Multiply(frac1, Fraction.Inverse(new Fraction((long)iNo))));
 }