Java 基本的算術運算可由+ 、 - 、 * 、 / 幾個運算子來進行,另有Math 類別提供許多常用的數學靜態方法(static method) ... int round(float f), 回傳最接近參數的整數值.
pydoing.blogspot.com