語言

BigDecimal.Negate 方法

定義

多載

名稱 Description
Negate()

回傳一個平原 BigDecimal ,其值為 -this。

Negate(MathContext)

回傳 一個 BigDecimal ,其值為 -this。

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 A 的值為 -this。

屬性

備註

回傳一個平原 BigDecimal ,其值為 -this。

與 #negate(MathContext)同理,其中上下文為 new MathContext(0, MathContext.PLAIN) 。

結果的小數部分(刻度)長度為 this.scale()

Java 文件 android.icu.math.BigDecimal.negate()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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 A 的值為 -this。

屬性

備註

回傳 一個 BigDecimal ,其值為 -this。

實作否定(前綴 <b>-</b>)運算子(如十進位文件定義,參見BigDecimal class header),並將結果以BigDecimal物件形式回傳。

Java 文件 android.icu.math.BigDecimal.negate(android.icu.math.MathContext)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於