src/NeinMath/Integer.cs
/// <summary>
/// Compares the Integer to another Integer and returns an integer that
/// indicates whether the value of the Integer is less than, equal to,
/// or greater than the value of the Integer.
/// </summary>
/// <param name="other">The Integer to compare.</param>
/// <returns>
/// An integer that indicates the relationship of the Integer to the
/// other parameter.
/// </returns>
Compares the Integer to another Integer and returns an integer that
indicates whether the value of the Integer is less than, equal to,
or greater than the value of the Integer.
Compares the Integer to another Integer and returns an integer that indicates whether the value of the Integer is less than equal to or greater than the value of the Integer .
public int CompareTo(Integer other)
        {
            if (sign && !other.sign)
                return -1;
            if (!sign && other.sign)
                return 1;
            var result = Bits.Compare(bits, length, other.bits, other.length);
            if (sign)
                result = -result;
            return result;
        }
public int CompareTo ( Integer other ) { if ( sign && ! other . sign ) return - 1 ; if ( ! sign && other . sign ) return 1 ; var result = Bits . Compare ( bits , length , other . bits , other . length ) ; if ( sign ) result = - result ; return result ; }
Compares the Integer to another Integer and returns an integer that
indicates whether the value of the Integer is less than, equal to,
or greater than the value of the Integer.
Compares the Integer to another Integer and returns an integer that indicates whether the value of the Integer is less than equal to or greater than the value of the Integer .
An integer that indicates the relationship of the Integer to the
other parameter.
An integer that indicates the relationship of the Integer to the other parameter .
other
Integer
The Integer to compare.
The Integer to compare .