BigDecimal.Pow Method

Definition

Overloads

Pow(Int32, MathContext)

Returns a BigDecimal whose value is (this<sup>n</sup>).

Pow(Int32)

Returns a BigDecimal whose value is (this<sup>n</sup>), The power is computed exactly, to unlimited precision.

Pow(Int32, MathContext)

Returns a BigDecimal whose value is (this<sup>n</sup>).

[Android.Runtime.Register("pow", "(ILjava/math/MathContext;)Ljava/math/BigDecimal;", "GetPow_ILjava_math_MathContext_Handler")]
public virtual Java.Math.BigDecimal? Pow (int n, Java.Math.MathContext? mc);
[<Android.Runtime.Register("pow", "(ILjava/math/MathContext;)Ljava/math/BigDecimal;", "GetPow_ILjava_math_MathContext_Handler")>]
abstract member Pow : int * Java.Math.MathContext -> Java.Math.BigDecimal
override this.Pow : int * Java.Math.MathContext -> Java.Math.BigDecimal

Parameters

n
Int32

power to raise this BigDecimal to.

mc
MathContext

the context to use.

Returns

this<sup>n</sup> using the ANSI standard X3.274-1996 algorithm

Attributes

Exceptions

if n or n > 999999999.

Remarks

Java documentation for java.math.BigDecimal.pow(int, java.math.MathContext).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Pow(Int32)

Returns a BigDecimal whose value is (this<sup>n</sup>), The power is computed exactly, to unlimited precision.

[Android.Runtime.Register("pow", "(I)Ljava/math/BigDecimal;", "GetPow_IHandler")]
public virtual Java.Math.BigDecimal? Pow (int n);
[<Android.Runtime.Register("pow", "(I)Ljava/math/BigDecimal;", "GetPow_IHandler")>]
abstract member Pow : int -> Java.Math.BigDecimal
override this.Pow : int -> Java.Math.BigDecimal

Parameters

n
Int32

power to raise this BigDecimal to.

Returns

this<sup>n</sup>

Attributes

Exceptions

if n or n > 999999999.

Remarks

Java documentation for java.math.BigDecimal.pow(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to