BigDecimal.Plus 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
Plus() |
Returns a plain |
Plus(MathContext) |
Returns a |
Plus()
Returns a plain BigDecimal
whose value is +this
.
[Android.Runtime.Register("plus", "()Landroid/icu/math/BigDecimal;", "GetPlusHandler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Plus ();
[<Android.Runtime.Register("plus", "()Landroid/icu/math/BigDecimal;", "GetPlusHandler", ApiSince=24)>]
abstract member Plus : unit -> Android.Icu.Math.BigDecimal
override this.Plus : unit -> Android.Icu.Math.BigDecimal
Returns
A BigDecimal
whose value is +this
.
- Attributes
Remarks
Returns a plain BigDecimal
whose value is +this
. Note that this
is not necessarily a plain BigDecimal
, but the result will always be.
The same as #plus(MathContext)
, where the context is new MathContext(0, MathContext.PLAIN)
.
The length of the decimal part (the scale) of the result will be be this.scale()
Java documentation for android.icu.math.BigDecimal.plus()
.
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
Plus(MathContext)
Returns a BigDecimal
whose value is +this
.
[Android.Runtime.Register("plus", "(Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetPlus_Landroid_icu_math_MathContext_Handler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Plus (Android.Icu.Math.MathContext? set);
[<Android.Runtime.Register("plus", "(Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetPlus_Landroid_icu_math_MathContext_Handler", ApiSince=24)>]
abstract member Plus : Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal
override this.Plus : Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal
Parameters
- set
- MathContext
The MathContext
arithmetic settings.
Returns
A BigDecimal
whose value is +this
.
- Attributes
Remarks
Returns a BigDecimal
whose value is +this
.
Implements the plus (Prefix <b>+
</b>) operator (as defined in the decimal documentation, see BigDecimal class header
), and returns the result as a BigDecimal
object.
This method is useful for rounding or otherwise applying a context to a decimal value.
Java documentation for android.icu.math.BigDecimal.plus(android.icu.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.