Java Integer Divide divideAndCeil(int dividend, int divisor)

Here you can find the source of divideAndCeil(int dividend, int divisor)

Description

divide And Ceil

License

Minecraft Mod Public

Declaration

public static int divideAndCeil(int dividend, int divisor) 

Method Source Code

//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;
    }
}

Related

  1. divide(int numerator, int denominator)
  2. divide(int value, int divideBy)
  3. divide(int x, int y)
  4. Divide(Object in, int val)
  5. divideAndCeil(int a, int b)
  6. divideAndRound(int dividend, int divisor)
  7. divideAndRoundUp(long dividend, int divisor)
  8. divideRoundUp(int first, int second)
  9. divideStringWithInt(String strDividend, int divisor)