Math.UnsignedPowExact 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 |
|---|---|
| UnsignedPowExact(Int32, Int32) |
Raises the unsigned integer base to a non-negative integer power, with an overflow check. |
| UnsignedPowExact(Int64, Int32) |
Raises the unsigned integer base to a non-negative integer power, with an overflow check. |
UnsignedPowExact(Int32, Int32)
Raises the unsigned integer base to a non-negative integer power, with an overflow check.
[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
Parameters
- x
- Int32
The base, interpreted as an unsigned integer.
- n
- Int32
The non-negative integer exponent.
Returns
The power, represented by the result's bit pattern.
- Attributes
Remarks
The base is interpreted as unsigned, and the result uses the same bit pattern in the signed return type. A zero exponent produces one, including for a zero base. A negative exponent, or a result outside 0 through 4294967295, causes ArithmeticException.
Applies to
UnsignedPowExact(Int64, Int32)
Raises the unsigned integer base to a non-negative integer power, with an overflow check.
[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
Parameters
- x
- Int64
The base, interpreted as an unsigned integer.
- n
- Int32
The non-negative integer exponent.
Returns
The power, represented by the result's bit pattern.
- Attributes
Remarks
The base is interpreted as unsigned, and the result uses the same bit pattern in the signed return type. A zero exponent produces one, including for a zero base. A negative exponent, or a result outside 0 through 18446744073709551615, causes ArithmeticException.