public class MathTest {
public static void main(String [] args){
int i=23,j=8;
System.out.println("结果:"+(double)i/(double)j);
double r=Math.ceil((double)i/(double)j);
System.out.println("结果:"+r);
}
}
public class MathTest {
public static void main(String [] args){
int i=23,j=8;
System.out.println("结果:"+(double)i/(double)j);
double r=Math.ceil((double)i/(double)j);
System.out.println("结果:"+r);
}
}