Język

StrictMath.PowExact Method

Definition

Overloads

Name Description
PowExact(Int32, Int32)

Returns x raised to the power of n, throwing an exception if the result overflows an int.

PowExact(Int64, Int32)

Returns x raised to the power of n, throwing an exception if the result overflows a long.

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

Applies to