Extensions.Pow(Int32, Int32) Method

Definition

Computes x^y for an integer base x and exponent y

public static int Pow (this int x, int exponent);
static member Pow : int * int -> int
<Extension()>
Public Function Pow (x As Integer, exponent As Integer) As Integer

Parameters

x
Int32

Base.

exponent
Int32

Exponent.

Returns

Int32

An integer x^y

Applies to