BigDecimal.Negate 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Negate() |
返回 |
| Negate(MathContext) |
返回 |
Negate()
返回 BigDecimal 其值为 -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
返回
BigDecimal其值为 -this.
- 特性
注解
返回 BigDecimal 其值为 -this..
与上下文#negate(MathContext)所在的相同new MathContext(0, MathContext.PLAIN)。
结果的小数部分(小数位数)的长度将为 this.scale()
Java文档android.icu.math.BigDecimal.negate()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
Negate(MathContext)
返回 BigDecimal 其值为 -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
参数
- set
- MathContext
MathContext算术设置。
返回
BigDecimal其值为 -this.
- 特性
注解
返回 BigDecimal 其值为 -this.
实现求反(前缀 <b>-</b>)运算符(如小数文档中的定义),BigDecimal class header并返回结果作为对象。BigDecimal
Java文档android.icu.math.BigDecimal.negate(android.icu.math.MathContext)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。