Freigeben über


BigDecimal.Plus Method

Definition

Overloads

Plus()

Returns a BigDecimal whose value is (+this), and whose scale is this.scale().

Plus(MathContext)

Returns a BigDecimal whose value is (+this), with rounding according to the context settings.

Plus()

Returns a BigDecimal whose value is (+this), and whose scale is this.scale().

[Android.Runtime.Register("plus", "()Ljava/math/BigDecimal;", "GetPlusHandler")]
public virtual Java.Math.BigDecimal? Plus ();
[<Android.Runtime.Register("plus", "()Ljava/math/BigDecimal;", "GetPlusHandler")>]
abstract member Plus : unit -> Java.Math.BigDecimal
override this.Plus : unit -> Java.Math.BigDecimal

Returns

this.

Attributes

Remarks

Java documentation for java.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), with rounding according to the context settings.

[Android.Runtime.Register("plus", "(Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetPlus_Ljava_math_MathContext_Handler")]
public virtual Java.Math.BigDecimal? Plus (Java.Math.MathContext? mc);
[<Android.Runtime.Register("plus", "(Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetPlus_Ljava_math_MathContext_Handler")>]
abstract member Plus : Java.Math.MathContext -> Java.Math.BigDecimal
override this.Plus : Java.Math.MathContext -> Java.Math.BigDecimal

Parameters

mc
MathContext

the context to use.

Returns

this, rounded as necessary. A zero result will have a scale of 0.

Attributes

Remarks

Java documentation for java.math.BigDecimal.plus(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