Crystal Reports for Rational Application Developer 設計工具指南
MRound
說明
MRound 會傳回已經四捨五入至您指定的倍數之數字。
多載
MRound (x)
MRound (x, multiple)
引數
x 引數是要四捨五入的值。
倍數就是您希望將 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.taiwan.businessobjects.com/
支援服務
http://www.taiwan.businessobjects.com/support/
產品說明文件網站
http://support.businessobjects.com/documentation/