BigInteger.CompareTo Method (BigInteger)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Compares two BigInteger values.
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 BigInteger value.
Return Value
Type: System.Int32
A signed integer that indicates how the big integer compares to another big integer.
Return value |
Description |
---|---|
Less than zero |
The big integer is less than another big integer. |
Zero |
The big integer is equal to another big integer. |
Greater than zero |
The big integer is greater than another big integer. |
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.