 | SystemExtensionPowMod Method (Int64, Int64, Int64) |
Raises an
Int64 to the power of another with respect to a modulo.
Namespace:
WhetStone.SystemExtensions
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic static long PowMod(
this long powbase,
long power,
long modulo
)
Parameters
- powbase
- Type: SystemInt64
The base of the exponential. - power
- Type: SystemInt64
The exponent of the exponential. - modulo
- Type: SystemInt64
The modulo for the exponential.
Return Value
Type:
Int64powbase to the power of
power modulo
moduloUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int64. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also