Here you can find the source of divideAndCeil(int dividend, int divisor)
public static int divideAndCeil(int dividend, int divisor)
//package com.java2s; /**//from w w w .j ava 2 s . c om * Additional Pipes is distributed under the terms of the Minecraft Mod Public * License 1.0, or MMPL. Please check the contents of the license located in * http://www.mod-buildcraft.com/MMPL-1.0.txt */ public class Main { public static int divideAndCeil(int dividend, int divisor) { return (dividend + divisor - 1) / divisor; } }