BigIntegerStatic: Compare

Compare

Compares two BigInteger instance to each other returning their relation.



 Public Function Compare(
	  ByVal x As BigInteger,
	  ByVal y As BigInteger ) As Long

Parameters

x
[ByVal] BigInteger. The left handed value to be compared to.
y
[ByVal] BigInteger. The right handed value to be compared to.

Return Values

Long -  Returns the relation between to the two numbers.

Remarks

If Nothing is passed in, it is treated as zero.
If x < y then -1 is returned
If x = y then 0 is returned
If x > y then 1 is returned.

See Also

Project VBCorLib Overview Class BigIntegerStatic Overview BigIntegerStatic Properties BigIntegerStatic Methods ClearBit Divide