Big Integer.Compare To Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Compare | Compares a number to another number. |
Compare | Compares a number to another number. |
Compare | Compares a number to another number. |
CompareTo(BigInteger)
Compares a number to another number.
public int CompareTo(
BigInteger other
)
Parameters
- other BigInteger
- A BigInteger.
Return Value
Int32-1 if this number is less than other; +1 if this number is larger than other; 0 if this number equals other.
Implements
IComparable<T>.CompareTo(T)CompareTo(Int32)
Compares a number to another number.
public int CompareTo(
int other
)
Parameters
- other Int32
- An integer.
Return Value
Int32-1 if this number is less than other; +1 if this number is larger than other; 0 if this number equals other.
Implements
IComparable<T>.CompareTo(T)CompareTo(Int64)
Compares a number to another number.
public int CompareTo(
long other
)
Parameters
- other Int64
- A long integer.
Return Value
Int32-1 if this number is less than other; +1 if this number is larger than other; 0 if this number equals other.