Here you can find the source of ceil(int a, int b)
Parameter | Description |
---|---|
a | a parameter |
b | a parameter |
protected static int ceil(int a, int b)
//package com.java2s; public class Main { /**/*from w ww.j a va 2 s. co m*/ * Return ceiling of integer division * * @param a * @param b * * @return int */ protected static int ceil(int a, int b) { return (a % b == 0 ? a / b : a / b + 1); } }