BigInteger.Compare Method

Compares two numbers.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static int Compare(
	BigInteger left,
	BigInteger right
)

Parameters

left  BigInteger
A BigInteger.
right  BigInteger
A BigInteger.

Return Value

Int32
-1 if left is less than right; +1 if left is larger than right; 0 if left equals right.

See Also