I have three integer type variable
- Totallistcount
- totalpagescount
- perpagecount
Suppose at initial level i have this
Totallistcount = 14;
perpagecount = 9;
Now I have a formula to found total number of pages possible
totalpagescount = Totallistcount / perpagecount ;
but in this situtation I got 1 in totalpagescount but I need 2 in totalpagescount , because 9 items on the first page and rest of item will be displayed on last page , How can I do this
Thanks ,
1 Answer