Java tutorial
//package com.java2s; public class Main { /** * Performs a division and rounds upwards to the next integer. * * @param numerator the numerator. * @param denominator the denominator. * @return an integer value. */ public static int divideToCeil(int numerator, int denominator) { Double result = Math.ceil((double) numerator / denominator); return result.intValue(); } }