MathContext.RoundHalfUp 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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_UP", 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 RoundHalfUp = 4;
[<Android.Runtime.Register("ROUND_HALF_UP", 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 RoundHalfUp : Android.Icu.Math.RoundOptionsUnused
欄位值
Value = 4- 屬性
備註
將四捨五入模式取入至最近鄰,並向上取整一個等距值。 用作控制操作過程中 BigDecimal 所用的四捨五入模式的設定。
若棄置的數字大於或等於下一局點1值的一半(0.5倍),則應向上取整(遠離零)。 否則,被丟棄的數字會被忽略。
Java 文件 android.icu.math.MathContext.ROUND_HALF_UP。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。