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