Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: BigInt ModPow(BigInt, BigInt)

  • Declared in: RT.BigInteger.BigInt

Declaration

public BigInt ModPow(
    BigInt exponent,
    BigInt modulus
)

Summary

Raises the current integer to the power of exponent and returns the result modulo modulus.

Remarks

For large bases and exponents, this method is significantly more efficient than using BigInt.Pow(BigInt) followed by BigInt.Modulo(BigInt).