BigInteger: CompareTo

CompareTo

Compares two BigInteger instance to each other returning their relation.



 Public Function CompareTo(
	  ByVal other As BigInteger ) As Long

Parameters

other
[ByVal] BigInteger. The right handed value to compare this instance against.

Return Values

Long -  Returns the relation between this instance and the other number.

Remarks

If Nothing is passed in, it is treated as zero.
If this instance < other then -1 is returned
If this instance = other then 0 is returned
If this instance > other then 1 is returned.

See Also

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