IncrementNumberRounder.RoundSingle(Single) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 单个 数字舍入为指定的增量。
public:
virtual float RoundSingle(float value) = RoundSingle;
float RoundSingle(float const& value);
public float RoundSingle(float value);
function roundSingle(value)
Public Function RoundSingle (value As Single) As Single
参数
- value
-
Single
float
要舍入的 Single 值。
返回
Single
float
舍入的数字。 此结果为单精度浮点数,不一定是整数。
实现
M:Windows.Globalization.NumberFormatting.INumberRounder.RoundSingle(System.Single)
M:Windows.Globalization.NumberFormatting.INumberRounder.RoundSingle(float)
注解
舍入策略基于 Increment 和 RoundingAlgorithm 的值。
注意
此方法仅在 单 一数据类型的限制内精确,或大约 7 位数。