Big Rational.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 this instance to a specified rational number and returns an indication of their relative values. |
Compare | Compares this instance to a specified rational number and returns an indication of their relative values. |
Compare | Compares this instance to a specified rational number and returns an indication of their relative values. |
CompareTo(BigInteger)
Compares this instance to a specified rational number and returns an indication of
their relative values.
public int CompareTo(
BigInteger other
)
Parameters
- other BigInteger
- A BigInteger number to compare to this instance.
Return Value
Int32A signed integer that indicates the relative values of this instance and other.
Return Value | Description |
---|---|
Less than zero | This instance is smaller than other. |
Zero | This instance is equal to other. |
Greater than zero | This instance is greater than other. |
Implements
IComparable<T>.CompareTo(T)CompareTo(BigRational)
Compares this instance to a specified rational number and returns an indication of
their relative values.
public int CompareTo(
BigRational other
)
Parameters
- other BigRational
- A rational number to compare to this instance.
Return Value
Int32A signed integer that indicates the relative values of this instance and other.
Return Value | Description |
---|---|
Less than zero | This instance is smaller than other. |
Zero | This instance is equal to other. |
Greater than zero | This instance is greater than other. |
Implements
IComparable<T>.CompareTo(T)CompareTo(Int32)
Compares this instance to a specified rational number and returns an indication of
their relative values.
public int CompareTo(
int other
)
Parameters
- other Int32
- A BigInteger number to compare to this instance.
Return Value
Int32A signed integer that indicates the relative values of this instance and other.
Return Value | Description |
---|---|
Less than zero | This instance is smaller than other. |
Zero | This instance is equal to other. |
Greater than zero | This instance is greater than other. |