MathContext.RoundHalfEven 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,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_EVEN", 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 RoundHalfEven = 6;
[<Android.Runtime.Register("ROUND_HALF_EVEN", 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 RoundHalfEven : Android.Icu.Math.RoundOptionsUnused
字段值
Value = 6- 属性
注解
舍入模式以舍入到最接近的邻居,其中等价值将舍入到最接近的偶数邻居。 用作控制操作期间 BigDecimal 使用的舍入模式的设置。
如果丢弃的数字表示大于一半(0.5 次),则下一个位置的一个数字的值应向上舍入(远离零)。 如果它们表示不到一半,则应向下舍入结果。
否则(它们正好表示一半),如果最右边的数字为偶数,则结果将向下舍入;如果最右边的数字为奇数(则为偶数)。
Java文档android.icu.math.MathContext.ROUND_HALF_EVEN。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。