Compares this instance to a specified rational number and returns an indication of
their relative values.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public int CompareTo(
BigRational other
)
Public Function CompareTo (
other As BigRational
) As Integer
public:
virtual int CompareTo(
BigRational other
) sealed
abstract CompareTo :
other : BigRational -> int
override CompareTo :
other : BigRational -> int
Parameters
- other
- Type: Extreme.MathematicsBigRational
A rational number to compare to this instance.
Return Value
Type:
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
IComparableTCompareTo(T)
Reference