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.

See Also

Project CorLib Overview

Class BigIntegerStatic Overview