Here you can find the source of divideAndCeilWithBase(int number, int base)
public static int divideAndCeilWithBase(int number, int base)
//package com.java2s; //License from project: Open Source License public class Main { public static int divideAndCeilWithBase(int number, int base) { int fp = number / base; int m = number % base; if (m == 0) { return fp; } else {/*from w ww . java 2s . c o m*/ return fp + 1; } } }