Java Math.round()方法用法實例教程 ... 描述 java.lang.Math.round(double a) 返回的參數最接近的long值。結果四捨五入為整數,加入1/2, floor的結果和構造的結果為long類型。
www.yiibai.com