BigIntegerStatic: Modulus

Modulus

Returns the modulus (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.Modulus(b, BInt(40))
 Debug.Print b.ToString ' 20
 

See Also

Project VBCorLib Overview Class BigIntegerStatic Overview BigIntegerStatic Properties BigIntegerStatic Methods ModPow Multiply