BigDecimal.Pow 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
| Pow(BigDecimal) |
Returns a plain |
| Pow(BigDecimal, MathContext) |
Returns a |
Pow(BigDecimal)
Returns a plain BigDecimal whose value is this**rhs, using fixed point arithmetic.
[Android.Runtime.Register("pow", "(Landroid/icu/math/BigDecimal;)Landroid/icu/math/BigDecimal;", "GetPow_Landroid_icu_math_BigDecimal_Handler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Pow(Android.Icu.Math.BigDecimal? rhs);
[<Android.Runtime.Register("pow", "(Landroid/icu/math/BigDecimal;)Landroid/icu/math/BigDecimal;", "GetPow_Landroid_icu_math_BigDecimal_Handler", ApiSince=24)>]
abstract member Pow : Android.Icu.Math.BigDecimal -> Android.Icu.Math.BigDecimal
override this.Pow : Android.Icu.Math.BigDecimal -> Android.Icu.Math.BigDecimal
Parameters
- rhs
- BigDecimal
The BigDecimal for the right hand side of the operation (the power).
Returns
A BigDecimal whose value is this**rhs, using fixed point arithmetic.
- Attributes
Remarks
Returns a plain BigDecimal whose value is this**rhs, using fixed point arithmetic.
The same as #pow(BigDecimal, MathContext), where the BigDecimal is rhs, and the context is new MathContext(0, MathContext.PLAIN).
The parameter is the power to which the this will be raised; it must be in the range 0 through 999999999, and must have a decimal part of zero. Note that these restrictions may be removed in the future, so they should not be used as a test for a whole number.
In addition, the power must not be negative, as no MathContext is used and so the result would then always be 0.
Java documentation for android.icu.math.BigDecimal.pow(android.icu.math.BigDecimal).
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(BigDecimal, MathContext)
Returns a BigDecimal whose value is this**rhs.
[Android.Runtime.Register("pow", "(Landroid/icu/math/BigDecimal;Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetPow_Landroid_icu_math_BigDecimal_Landroid_icu_math_MathContext_Handler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Pow(Android.Icu.Math.BigDecimal? rhs, Android.Icu.Math.MathContext? set);
[<Android.Runtime.Register("pow", "(Landroid/icu/math/BigDecimal;Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetPow_Landroid_icu_math_BigDecimal_Landroid_icu_math_MathContext_Handler", ApiSince=24)>]
abstract member Pow : Android.Icu.Math.BigDecimal * Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal
override this.Pow : Android.Icu.Math.BigDecimal * Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal
Parameters
- rhs
- BigDecimal
The BigDecimal for the right hand side of the operation (the power).
- set
- MathContext
The MathContext arithmetic settings.
Returns
A BigDecimal whose value is this**rhs.
- Attributes
Remarks
Returns a BigDecimal whose value is this**rhs.
Implements the power (<b>^</b>) operator (as defined in the decimal documentation, see BigDecimal class header), and returns the result as a BigDecimal object.
The first parameter is the power to which the this will be raised; it must be in the range -999999999 through 999999999, and must have a decimal part of zero. Note that these restrictions may be removed in the future, so they should not be used as a test for a whole number.
If the digits setting of the MathContext parameter is 0, the power must be zero or positive.
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.