示例#1
0
 public bool Inf(Fraction a, Fraction b)
 {
     return((decimal)a.num * b.den < (decimal)b.num * a.den);
 }
示例#2
0
 public bool Egal(Fraction a, Fraction b)
 {
     return((decimal)a.num * b.den == (decimal)b.num * a.den);
 }
示例#3
0
 /// <summary>
 /// opérateurs relationnels
 /// </summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public bool Sup(Fraction a, Fraction b)
 {
     return((decimal)a.num * b.den > (decimal)b.num * a.den);
 }