Big Rational.Compare To Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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. |