Java Ceil ceilDivision(int value, int divisor)

Here you can find the source of ceilDivision(int value, int divisor)

Description

ceil Division

License

Apache License

Declaration

public static int ceilDivision(int value, int divisor) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int ceilDivision(int value, int divisor) {
        return (value + (divisor - 1)) / divisor;
    }/* www.ja  v  a  2 s.co  m*/

    public static long ceilDivision(long value, int divisor) {
        return (value + (divisor - 1)) / divisor;
    }
}

Related

  1. ceil2(int a, int preserveDigits)
  2. ceilDiv(int numerator, int denominator)
  3. ceilDiv(int v1, int v2)
  4. ceilDiv(long a, long b)
  5. ceilDivide(long a, long b)
  6. ceiling(double d)
  7. ceiling(double d)
  8. ceiling_float_int(float value)
  9. ceilingAbs(double a)