Crystal Reports for Rational Application Developer 設計工具指南
Ceiling
說明
Ceiling 會傳回已經四捨五入至您指定的倍數之數字。
多載
Ceiling (x)
Ceiling (x, multiple)
引數
x 引數是要四捨五入的值。
倍數就是您希望將 x 值四捨五入的倍數。
傳回
數字
動作
這個函式會四捨五入 (除了零之外)。
範例
Ceiling(3.5,1)
傳回 4。
Ceiling(-2.5,-2)
傳回 -4。
Ceiling(-2.5,2)
傳回 -4。
Ceiling(5.43,.05)
傳回 5.45。
Ceiling(.43,-1)
傳回 1。
註解
Crystal Reports
會忽略倍數的符號,函式的結果會使用第一個參數的符號。
當您將數值調整成非零的值時,數值永遠採進位方式 (無論數值的符號為何)。如果數字正好是倍數的倍數,就不會四捨五入。
Business Objects, SAP 子公司
http://www.taiwan.businessobjects.com/
支援服務
http://www.taiwan.businessobjects.com/support/
產品說明文件網站
http://support.businessobjects.com/documentation/