Exemplo n.º 1
0
 /// <summary>
 /// Operator multiplying fraction and number
 /// </summary>
 public static Fraction operator *(Fraction fraction, int number)
 {
     var result = new Fraction(fraction);
     result.Multiply(number);
     return result;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Operator multiplying two fractions
 /// </summary>
 public static Fraction operator *(Fraction first, Fraction second)
 {
     var result = new Fraction(first);
     result.Multiply(second);
     return result;
 }