BigInteger.CompareTo Method (Int32)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Compares a big integer to a 32-bit integer.
Namespace: Microsoft.SolverFoundation.Common
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function CompareTo ( _
n As Integer _
) As Integer
public int CompareTo(
int n
)
public:
virtual int CompareTo(
int n
) sealed
abstract CompareTo :
n:int -> int
override CompareTo :
n:int -> int
public final function CompareTo(
n : int
) : int
Parameters
- n
Type: System.Int32
A Int32 value that is compared to a big integer.
Return Value
Type: System.Int32
A signed integer that indicates how the big integer compares to an integer.
Return value |
Description |
---|---|
Less than zero |
The big integer is less than an integer. |
Zero |
The big integer is equal to an integer. |
Greater than zero |
The big integer is greater than an 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.