Big Integer.Compare Method
Compares two numbers.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
-1 if left is less than right; +1 if left is larger than right; 0 if left equals right.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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.