src/NeinMath/Integer.cs
/// <summary>
/// Compares the Integer to a signed 32-bit 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 signed 32-bit
/// integer.
/// </summary>
/// <param name="other">The signed 32-bit integer to compare.</param>
/// <returns>
/// An integer that indicates the relationship of the Integer to the
/// other parameter.
/// </returns>
Compares the Integer to a signed 32-bit 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 signed 32-bit
integer.
Compares the Integer to a signed 32 - bit 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 signed 32 - bit integer .
public int CompareTo(int other)
        {
            if (sign && other >= 0)
                return -1;
            if (!sign && other < 0)
                return 1;
            var result = Bits.Compare(bits, length, Bits.Abs(other));
            if (sign)
                result = -result;
            return result;
        }
public int CompareTo ( int other ) { if ( sign && other >= 0 ) return - 1 ; if ( ! sign && other < 0 ) return 1 ; var result = Bits . Compare ( bits , length , Bits . Abs ( other ) ) ; if ( sign ) result = - result ; return result ; }
Compares the Integer to a signed 32-bit 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 signed 32-bit
integer.
Compares the Integer to a signed 32 - bit 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 signed 32 - bit 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
int
The signed 32-bit integer to compare.
The signed 32 - bit integer to compare .