語言

MathContext.RoundHalfDown 欄位

定義

警告

This constant will be removed in the future version. Use Android.Icu.Math.RoundOptionsUnused enum directly instead of this field.

將四捨五入模式取入至最近鄰,並向下取整一個等距值。

[Android.Runtime.Register("ROUND_HALF_DOWN", ApiSince=24)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Icu.Math.RoundOptionsUnused enum directly instead of this field.", true)]
public const Android.Icu.Math.RoundOptionsUnused RoundHalfDown = 5;
[<Android.Runtime.Register("ROUND_HALF_DOWN", ApiSince=24)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Icu.Math.RoundOptionsUnused enum directly instead of this field.", true)>]
val mutable RoundHalfDown : Android.Icu.Math.RoundOptionsUnused

欄位值

Value = 5
屬性

備註

將四捨五入模式取入至最近鄰,並向下取整一個等距值。 用作控制操作過程中 BigDecimal 所用的四捨五入模式的設定。

若棄置的數字代表下一位置 1 值的一半(0.5 倍),則應向上取整(遠離零)。 否則,被丟棄的數字會被忽略。

的 android.icu.math.MathContext.ROUND_HALF_DOWNJava 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於