StrictMath.PowExact Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| PowExact(Int32, Int32) |
Returns |
| PowExact(Int64, Int32) |
Returns |
PowExact(Int32, Int32)
Returns x raised to the power of n,
throwing an exception if the result overflows an 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
Parameters
- x
- Int32
the base.
- n
- Int32
the exponent.
Returns
x raised to the power of n.
- Attributes
Applies to
PowExact(Int64, Int32)
Returns x raised to the power of n,
throwing an exception if the result overflows a 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
Parameters
- x
- Int64
the base.
- n
- Int32
the exponent.
Returns
x raised to the power of n.
- Attributes