public static bool operator <=(DoubleExtention a, DoubleExtention b) { if (DoubleComparator.IsNotGreater(a, b)) { return(true); } else { return(false); } }
public int CompareTo(object obj) { if (obj is DoubleExtention) { char sign = DoubleComparator.MathSignReturn((DoubleExtention)obj, this); if (sign == '=') { return(0); } if (sign == '>') { return(1); } if (sign == '<') { return(-1); } } else { throw new ArgumentException(); } return(0); }
public static bool operator !=(DoubleExtention a, DoubleExtention b) { return(DoubleComparator.IsNotEqual(a, b)); }