Rational.CompareTo Method (BigInteger)
[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 a big integer.
Namespace: Microsoft.SolverFoundation.Common
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function CompareTo ( _
bn As BigInteger _
) As Integer
public int CompareTo(
BigInteger bn
)
public:
virtual int CompareTo(
BigInteger bn
) sealed
abstract CompareTo :
bn:BigInteger -> int
override CompareTo :
bn:BigInteger -> int
public final function CompareTo(
bn : BigInteger
) : int
Parameters
- bn
Type: Microsoft.SolverFoundation.Common.BigInteger
A big integer value.
Return Value
Type: System.Int32
A 32-bit signed integer that indicates how the rational number compares to the big integer. The return values are described in the following table.
Return value |
Description |
---|---|
Less than zero |
This object is less than bn. |
Zero |
This object is equivalent to bn.. |
Greater than zero |
This object is greater than bn. |
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.