Crystal Reports for Rational Application Developer 设计员指南
MRound
说明
MRound 返回已四舍五入到指定倍数的数字。
重载
MRound (x)
MRound (x, multiple)
参数
x 是要四舍五入的值。
multiple 是您要将 x 值四舍五入到的倍数。
返回
数字
操作
如果除法的余数大于或等于倍数值的一半,此函数将向上舍入(远离零)。
示例
MRound(10,3)
返回 9。
MRound(-10,-3)
返回 -9。
MRound(1.3,0.2)
返回 1.4。
MRound(5,-2)
返回 6。
MRound(-5,2)
返回 -6。
注释
Crystal Reports
将忽略倍数的正负号,并且函数的结果将采用第一个参数的正负号。
Business Objects,SAP 子公司
http://www.china.businessobjects.com/
支持服务
http://www.china.businessobjects.com/support/
Web 上的产品文档
http://support.businessobjects.com/documentation/