Condividi tramite


BigDecimal.Abs Method

Definition

Overloads

Abs()

Returns a BigDecimal whose value is the absolute value of this BigDecimal, and whose scale is this.scale().

Abs(MathContext)

Returns a BigDecimal whose value is the absolute value of this BigDecimal, with rounding according to the context settings.

Abs()

Returns a BigDecimal whose value is the absolute value of this BigDecimal, and whose scale is this.scale().

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

Returns

abs(this)

Attributes

Remarks

Java documentation for java.math.BigDecimal.abs().

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

Abs(MathContext)

Returns a BigDecimal whose value is the absolute value of this BigDecimal, with rounding according to the context settings.

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

Parameters

mc
MathContext

the context to use.

Returns

abs(this), rounded as necessary.

Attributes

Remarks

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