BigIntegerStatic: ModPow

ModPow

Performs a modulo on a BigInteger value raised to a power. b = (x^y) mod z.



 Public Function ModPow(
	  ByVal baseValue As BigInteger,
	  ByVal exponent As BigInteger,
	  ByVal m As BigInteger ) As BigInteger

Parameters

baseValue
[ByVal] BigInteger. The value to be raised to the power of the exponent.
exponent
[ByVal] BigInteger. The power to raise the baseValue to.
m
[ByVal] BigInteger. The modulus value to perform on the raised baseValue.

Return Values

BigInteger -  Returns the modulus of the raised baseValue.

Values of Nothing are treated as zero.

Remarks

See Also

Project VBCorLib Overview Class BigIntegerStatic Overview BigIntegerStatic Properties BigIntegerStatic Methods MinusOne (get) Modulus