Rational.CompareTo Method (Object)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Compares a rational number to another number (Int32, UInt32, Double, Int64, UInt64, Rational, or BigInteger).
Namespace: Microsoft.SolverFoundation.Common
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function CompareTo ( _
obj As Object _
) As Integer
public int CompareTo(
Object obj
)
public:
virtual int CompareTo(
Object^ obj
) sealed
abstract CompareTo :
obj:Object -> int
override CompareTo :
obj:Object -> int
public final function CompareTo(
obj : Object
) : int
Parameters
- obj
Type: System.Object
An object that is a number.
Return Value
Type: System.Int32
A 32-bit signed integer that indicates how the rational number compares to the other number. The return values are described in the following table.
Return value |
Description |
---|---|
Less than zero |
This object is less than the input. |
Zero |
This object is equivalent toe the input. |
Greater than zero |
This object is greater than the input. |
Implements
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.