浮点数不是精确值,所以使用它们会导致舍入误差。
Floating point Numbers are not exact, and manipulating them will result in rounding errors.
将双 精度浮 点值按指定的小数位数舍入。
Rounds a double - precision floating - point value to the specified number of fractional digits.
如何舍入到最近的十进制值的浮动值?
应用推荐