Share via


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

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

IComparable<T>.CompareTo(T)

.NET Framework Security

See Also

Reference

BigInteger Structure

CompareTo Overload

Microsoft.SolverFoundation.Common Namespace