BigIntegerStatic: Modulus

Modulus

Returns the remainder of division between two BigInteger values.



 Public Function Modulus(
	  ByVal Dividend As BigInteger,
	  ByVal Divisor As BigInteger ) As BigInteger

Parameters

Dividend
[ByVal] BigInteger. The value to be divided.
Divisor
[ByVal] BigInteger. The value to divide by.

Return Values

BigInteger -  Returns the remainder portion of the division operation.

Remarks

Values of Nothing will be treated as zero.

 Dim b As BigInteger
 Set b = BInt(100)
 Set b = BigInteger.Remainder(b, BInt(40))
 Debug.Print b.ToString ' 20
 

See Also

Project CorLib Overview

Class BigIntegerStatic Overview