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

public static int divCeil(int a, int b) 

Method Source Code

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

public class Main {
    public static int divCeil(int a, int b) {
        return (a + b - 1) / b;
    }//from  w  w  w .j  av a 2 s .c om

    public static <T extends Number> Long divCeil(T a, T b) {
        return (a.longValue() + b.longValue() - 1) / b.longValue();
    }
}

Related

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