BigInteger.CompareTo Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

CompareTo(BigInteger) Compares a number to another number.
CompareTo(Int32) Compares a number to another number.
CompareTo(Int64) Compares a number to another number.

CompareTo(BigInteger)

Compares a number to another number.
C#
public int CompareTo(
	BigInteger other
)

Parameters

other  BigInteger
A BigInteger.

Return Value

Int32
-1 if this number is less than other; +1 if this number is larger than other; 0 if this number equals other.

Implements

IComparable<T>.CompareTo(T)

CompareTo(Int32)

Compares a number to another number.
C#
public int CompareTo(
	int other
)

Parameters

other  Int32
An integer.

Return Value

Int32
-1 if this number is less than other; +1 if this number is larger than other; 0 if this number equals other.

Implements

IComparable<T>.CompareTo(T)

CompareTo(Int64)

Compares a number to another number.
C#
public int CompareTo(
	long other
)

Parameters

other  Int64
A long integer.

Return Value

Int32
-1 if this number is less than other; +1 if this number is larger than other; 0 if this number equals other.

See Also