BigInteger.CompareTo Method (Int64)

[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 long.

Namespace:  Microsoft.SolverFoundation.Common
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public Function CompareTo ( _
    nn As Long _
) As Integer
public int CompareTo(
    long nn
)
public:
virtual int CompareTo(
    long long nn
) sealed
abstract CompareTo : 
        nn:int64 -> int 
override CompareTo : 
        nn:int64 -> int 
public final function CompareTo(
    nn : long
) : int

Parameters

Return Value

Type: System.Int32
A signed integer that indicates how the big integer compares to a long.

Return value

Description

Less than zero

The big integer is less than a long.

Zero

The big integer is equal to a long.

Greater than zero

The big integer is greater than a long.

Implements

IComparable<T>.CompareTo(T)

.NET Framework Security

See Also

Reference

BigInteger Structure

CompareTo Overload

Microsoft.SolverFoundation.Common Namespace