コード例 #1
0
 public Fraction DivideBy(Fraction f)
 {
     return(new Fraction(this.numerator * f.Denominator, this.denominator * f.Numerator));
 }
コード例 #2
0
 public Fraction Multiply(Fraction f)
 {
     return(new Fraction(this.numerator * f.Numerator, this.denominator * f.Denominator));
 }