public static int CompareValues(RationalInfo r0, RationalInfo r1) { return(Powers.Compare( r0.rational.GetPrimePowers(), r1.rational.GetPrimePowers() )); }
public int CompareTo(Rational other) { return(this.IsZero() ? (other.IsZero() ? 0 : -1) : (other.IsZero() ? 1 : this.IsInfinity() ? (other.IsInfinity() ? 0 : 1) : (other.IsInfinity() ? -1 : Powers.Compare(this.pows, other.pows)) )); }