public bool Inf(Fraction a, Fraction b) { return((decimal)a.num * b.den < (decimal)b.num * a.den); }
public bool Egal(Fraction a, Fraction b) { return((decimal)a.num * b.den == (decimal)b.num * a.den); }
/// <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); }