突然需求,以前不会留给自己的记忆!这样是接口用来显示剩余页数
double a =(double) 10;
double b = (double)Integer.parseInt(3);
int totalPage = (int) Math.ceil((double) a/b);System.out.println("totalPage ="+totalPage);//4
突然需求,以前不会留给自己的记忆!这样是接口用来显示剩余页数
double a =(double) 10;
double b = (double)Integer.parseInt(3);
int totalPage = (int) Math.ceil((double) a/b);System.out.println("totalPage ="+totalPage);//4