BigDecimal.Negate 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
Negate() |
Returns a plain |
Negate(MathContext) |
Returns a |
Negate()
Returns a plain BigDecimal
whose value is -this
.
[Android.Runtime.Register("negate", "()Landroid/icu/math/BigDecimal;", "GetNegateHandler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Negate ();
[<Android.Runtime.Register("negate", "()Landroid/icu/math/BigDecimal;", "GetNegateHandler", ApiSince=24)>]
abstract member Negate : unit -> Android.Icu.Math.BigDecimal
override this.Negate : unit -> Android.Icu.Math.BigDecimal
Returns
A BigDecimal
whose value is -this
.
- Attributes
Remarks
Returns a plain BigDecimal
whose value is -this
.
The same as #negate(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.negate()
.
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
Negate(MathContext)
Returns a BigDecimal
whose value is -this
.
[Android.Runtime.Register("negate", "(Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetNegate_Landroid_icu_math_MathContext_Handler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Negate (Android.Icu.Math.MathContext? set);
[<Android.Runtime.Register("negate", "(Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetNegate_Landroid_icu_math_MathContext_Handler", ApiSince=24)>]
abstract member Negate : Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal
override this.Negate : 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 negation (Prefix <b>-
</b>) operator (as defined in the decimal documentation, see BigDecimal class header
), and returns the result as a BigDecimal
object.
Java documentation for android.icu.math.BigDecimal.negate(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.