Java Integer Divide divCeil(int a, int b)

Here you can find the source of divCeil(int a, int b)

Description

div Ceil

License

Open Source License

Declaration

static public int divCeil(int a, int b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static public int divCeil(int a, int b) {
        return a / b + ((a % b == 0) ? 0 : 1);
    }//w ww  . ja va  2  s  . c  o  m
}

Related

  1. div(int a, int b)
  2. div(int dividend, int divisor)
  3. div(int val, int coe)
  4. divce(long size, long divider, int i)
  5. divCeil(int a, int b)
  6. divCeil(int a, int b)
  7. divCeil(int nNumerator, int nDenominator)
  8. divCeil(int pNum, int pDivisor)
  9. divCeil(int value, int divisor)