String s="1.0"; 当需要存入INT类型时 需要将其转为DOUBLE在调用MATH.CEIL Double f = Double.valueOf(s); Int a = (int)Math.ceil(f);