語言

BigDecimal.Divide 方法

定義

多載

名稱 Description
Divide(BigDecimal, Int32, RoundOptions)

回傳一個平文 BigDecimal ,其值為 this/rhs,使用不動點運算及給定的刻度與捨入模式。

Divide(BigDecimal, RoundOptions)

回傳一個平素 BigDecimal ,其值為 this/rhs,使用不動點運算和四捨五入模式。

Divide(BigDecimal)

回傳一個平素 BigDecimal ,其值為 this/rhs,使用不動點運算。

Divide(BigDecimal, MathContext)

回傳 一個 BigDecimal ,其值為 this/rhs。

Divide(BigDecimal, Int32, RoundOptions)

回傳一個平文 BigDecimal ,其值為 this/rhs,使用不動點運算及給定的刻度與捨入模式。

[Android.Runtime.Register("divide", "(Landroid/icu/math/BigDecimal;II)Landroid/icu/math/BigDecimal;", "GetDivide_Landroid_icu_math_BigDecimal_IIHandler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Divide(Android.Icu.Math.BigDecimal? rhs, int scale, Android.Icu.Math.RoundOptions round);
[<Android.Runtime.Register("divide", "(Landroid/icu/math/BigDecimal;II)Landroid/icu/math/BigDecimal;", "GetDivide_Landroid_icu_math_BigDecimal_IIHandler", ApiSince=24)>]
abstract member Divide : Android.Icu.Math.BigDecimal * int * Android.Icu.Math.RoundOptions -> Android.Icu.Math.BigDecimal
override this.Divide : Android.Icu.Math.BigDecimal * int * Android.Icu.Math.RoundOptions -> Android.Icu.Math.BigDecimal

參數

rhs
BigDecimal

這是 BigDecimal 該分區右側的表現。

scale
Int32

int結果將使用比例尺。

round
RoundOptions

int將用於劃分的四捨五入模式(見MathContext類別)。

傳回

一個平平面 BigDecimal ,其值為 this/rhs,使用不動點運算及指定的四捨五入模式。

屬性

備註

回傳一個平文 BigDecimal ,其值為 this/rhs,使用不動點運算及給定的刻度與捨入模式。

與 同 #divide(BigDecimal, MathContext)理,其中 BigDecimal 為 rhs, new MathContext(0, MathContext.PLAIN, false, round)但用於結果的小數部分(刻度)長度是顯式的,而非取自 this。

如果將當前物件的刻度格式化為不使用指數符號,結果的十進位部分(刻度)長度將與當前物件的刻度相同。

Java 文件 android.icu.math.BigDecimal.divide(android.icu.math.BigDecimal, int, int)。

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

適用於

Divide(BigDecimal, RoundOptions)

回傳一個平素 BigDecimal ,其值為 this/rhs,使用不動點運算和四捨五入模式。

[Android.Runtime.Register("divide", "(Landroid/icu/math/BigDecimal;I)Landroid/icu/math/BigDecimal;", "GetDivide_Landroid_icu_math_BigDecimal_IHandler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Divide(Android.Icu.Math.BigDecimal? rhs, Android.Icu.Math.RoundOptions round);
[<Android.Runtime.Register("divide", "(Landroid/icu/math/BigDecimal;I)Landroid/icu/math/BigDecimal;", "GetDivide_Landroid_icu_math_BigDecimal_IHandler", ApiSince=24)>]
abstract member Divide : Android.Icu.Math.BigDecimal * Android.Icu.Math.RoundOptions -> Android.Icu.Math.BigDecimal
override this.Divide : Android.Icu.Math.BigDecimal * Android.Icu.Math.RoundOptions -> Android.Icu.Math.BigDecimal

參數

rhs
BigDecimal

這是 BigDecimal 該分區右側的表現。

round
RoundOptions

int將用於劃分的四捨五入模式(見MathContext類別)。

傳回

一個平平面 BigDecimal ,其值為 this/rhs,使用不動點運算及指定的四捨五入模式。

屬性

備註

回傳一個平素 BigDecimal ,其值為 this/rhs,使用不動點運算和四捨五入模式。

與 #divide(BigDecimal, int, int)相同,其中 BigDecimal 為 rhs,第二個參數為 this.scale(),第三個參數為 round。

因此,若未使用指數符號格式化,結果的十進位部分(刻度)長度將與當前物件的刻度相同。

Java 文件 android.icu.math.BigDecimal.divide(android.icu.math.BigDecimal, int)。

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

適用於

Divide(BigDecimal)

回傳一個平素 BigDecimal ,其值為 this/rhs,使用不動點運算。

[Android.Runtime.Register("divide", "(Landroid/icu/math/BigDecimal;)Landroid/icu/math/BigDecimal;", "GetDivide_Landroid_icu_math_BigDecimal_Handler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Divide(Android.Icu.Math.BigDecimal? rhs);
[<Android.Runtime.Register("divide", "(Landroid/icu/math/BigDecimal;)Landroid/icu/math/BigDecimal;", "GetDivide_Landroid_icu_math_BigDecimal_Handler", ApiSince=24)>]
abstract member Divide : Android.Icu.Math.BigDecimal -> Android.Icu.Math.BigDecimal
override this.Divide : Android.Icu.Math.BigDecimal -> Android.Icu.Math.BigDecimal

參數

rhs
BigDecimal

這是 BigDecimal 該分區右側的表現。

傳回

一個以不動點運算計算值為 BigDecimal的平面this/rhs。

屬性

備註

回傳一個平素 BigDecimal ,其值為 this/rhs,使用不動點運算。

與 相同#divide(BigDecimal, int),其中 為 BigDecimal,捨rhs入模式為 MathContext#ROUND_HALF_UP。

如果將當前物件的刻度格式化為不使用指數符號,結果的十進位部分(刻度)長度將與當前物件的刻度相同。

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

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

適用於

Divide(BigDecimal, MathContext)

回傳 一個 BigDecimal ,其值為 this/rhs。

[Android.Runtime.Register("divide", "(Landroid/icu/math/BigDecimal;Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetDivide_Landroid_icu_math_BigDecimal_Landroid_icu_math_MathContext_Handler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Divide(Android.Icu.Math.BigDecimal? rhs, Android.Icu.Math.MathContext? set);
[<Android.Runtime.Register("divide", "(Landroid/icu/math/BigDecimal;Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetDivide_Landroid_icu_math_BigDecimal_Landroid_icu_math_MathContext_Handler", ApiSince=24)>]
abstract member Divide : Android.Icu.Math.BigDecimal * Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal
override this.Divide : Android.Icu.Math.BigDecimal * Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal

參數

rhs
BigDecimal

這是 BigDecimal 該分區右側的表現。

set
MathContext

算 MathContext 術設定。

傳回

BigDecimal A 的值為 this/rhs。

屬性

備註

回傳 一個 BigDecimal ,其值為 this/rhs。

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

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

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

適用於