BigInteger: Modulus

Modulus

Performs a modulus operation, returning the remainder.



 Public Function Modulus(
	  ByVal Divisor As BigInteger ) As BigInteger

Parameters

Divisor
[ByVal] BigInteger. A numeric representation of the value to divide this instance by.

Return Values

BigInteger -  The modulus (remainder) of the division.

Remarks

This method accepts a BigInteger, one of VBs numeric values or a string to be parsed.

 Dim b As BigInteger
 Set b = BInt(100)
 Set b = b.Modulus(BInt(40))
 Debug.Print b.ToString

 ' This outputs the following:
 20
 

See Also

Project CorLib Overview

Class BigInteger Overview