Java Number Round roundUp(int num, int divisor)

Here you can find the source of roundUp(int num, int divisor)

Description

round Up

License

Open Source License

Declaration

public static int roundUp(int num, int divisor) 

Method Source Code

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

public class Main {
    public static int roundUp(int num, int divisor) {
        return (num + divisor - 1) / divisor;
    }/*from w ww.j  a  va  2s. c  o m*/
}

Related

  1. roundUp(int groupSize, int globalSize)
  2. roundUp(int groupSize, int globalSize)
  3. roundUp(int i, int snap)
  4. roundUp(int n, int nearestMultiple)
  5. roundUp(int ndigits)
  6. roundUp(int number, int interval)
  7. roundUp(int p_154354_0_, int p_154354_1_)
  8. roundUp(int v, int quant)
  9. roundUp(int val, int shift)