Math.UnsignedPowExact 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| UnsignedPowExact(Int32, Int32) |
將無符號整數基底提升為非負整數冪,並進行溢位檢查。 |
| UnsignedPowExact(Int64, Int32) |
將無符號整數基底提升為非負整數冪,並進行溢位檢查。 |
UnsignedPowExact(Int32, Int32)
將無符號整數基底提升為非負整數冪,並進行溢位檢查。
[Android.Runtime.Register("unsignedPowExact", "(II)I", "", ApiSince=37)]
public static int UnsignedPowExact(int x, int n);
[<Android.Runtime.Register("unsignedPowExact", "(II)I", "", ApiSince=37)>]
static member UnsignedPowExact : int * int -> int
參數
- x
- Int32
底數被解釋為無符號整數。
- n
- Int32
非負整數指數。
傳回
功率,由結果的位元模式代表。
- 屬性
備註
基底被解讀為無符號,結果在有符號回傳類型中使用相同的位元模式。 零指數會產生一,包括零基底。 負指數,或超出 0 到 4294967295 的結果,會造成 ArithmeticException。
適用於
UnsignedPowExact(Int64, Int32)
將無符號整數基底提升為非負整數冪,並進行溢位檢查。
[Android.Runtime.Register("unsignedPowExact", "(JI)J", "", ApiSince=37)]
public static long UnsignedPowExact(long x, int n);
[<Android.Runtime.Register("unsignedPowExact", "(JI)J", "", ApiSince=37)>]
static member UnsignedPowExact : int64 * int -> int64
參數
- x
- Int64
底數被解釋為無符號整數。
- n
- Int32
非負整數指數。
傳回
功率,由結果的位元模式代表。
- 屬性
備註
基底被解讀為無符號,結果在有符號回傳類型中使用相同的位元模式。 零指數會產生一,包括零基底。 負指數,或範圍外的結果,18446744073709551615 會造成 ArithmeticException。