Java Ceil ceilDivide(long a, long b)

Here you can find the source of ceilDivide(long a, long b)

Description

ceil Divide

License

Apache License

Declaration

public static int ceilDivide(long a, long b) 

Method Source Code

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

public class Main {
    public static int ceilDivide(long a, long b) {
        long c = a % b;
        return (int) (a / b + (c > 0 ? 1 : 0));
    }/*from  w  w  w.j ava2 s. c om*/
}

Related

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