java.lang.Math可以帮到你。        int aa = 0;
        int intValue;
        if (aa > 0)
            intValue = (int)Math.ceil(aa); //Math.ceil(double ) 
        else 
            intValue = 0;
    /** @return  the smallest (closest to negative infinity) 
     *          floating-point value that is not less than the argument
     *          and is equal to a mathematical integer. 
     */