StrictMath.PowExact 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| PowExact(Int32, Int32) |
返回 |
| PowExact(Int64, Int32) |
返回 |
PowExact(Int32, Int32)
返回x结果溢出int时引发异常的n幂。
[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(Int32, Int32) 并使用相同的整数解释和溢出检查。
适用于
PowExact(Int64, Int32)
返回x结果溢出long时引发异常的n幂。
[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
- 特性
注解
此重载委托 PowExact(Int64, Int32) 并使用相同的整数解释和溢出检查。