語言

StrictMath.PowExact 方法

定義

多載

名稱 Description
PowExact(Int32, Int32)

回傳 x 提升到 的冪次 n方,若結果超出 , int則拋出例外。

PowExact(Int64, Int32)

回傳 x 提升到 的 n冪次方,若結果超出 , long則拋出例外。

PowExact(Int32, Int32)

回傳 x 提升到 的冪次 n方,若結果超出 , int則拋出例外。

[Android.Runtime.Register("powExact", "(II)I", "", ApiSince=37)]
public static int PowExact(int x, int n);
[<Android.Runtime.Register("powExact", "(II)I", "", ApiSince=37)>]
static member PowExact : int * int -> int

參數

x
Int32

基地。

n
Int32

指數。

傳回

x 提升為 的冪次方 n。

屬性

適用於

PowExact(Int64, Int32)

回傳 x 提升到 的 n冪次方,若結果超出 , long則拋出例外。

[Android.Runtime.Register("powExact", "(JI)J", "", ApiSince=37)]
public static long PowExact(long x, int n);
[<Android.Runtime.Register("powExact", "(JI)J", "", ApiSince=37)>]
static member PowExact : int64 * int -> int64

參數

x
Int64

基地。

n
Int32

指數。

傳回

x 提升為 的冪次方 n。

屬性

適用於