Java Number Round roundUp(int groupSize, int globalSize)

Here you can find the source of roundUp(int groupSize, int globalSize)

Description

round Up

License

Open Source License

Declaration

public static final int roundUp(int groupSize, int globalSize) 

Method Source Code

//package com.java2s;

public class Main {
    public static final int roundUp(int groupSize, int globalSize) {
        int r = globalSize % groupSize;
        if (r == 0) {
            return globalSize;
        } else {//from  w ww . ja  v a  2s . co m
            return globalSize + groupSize - r;
        }
    }
}

Related

  1. roundUp(final int number, final int base)
  2. RoundUp(final T number)
  3. roundUp(int capacity)
  4. roundUp(int dividend, int divisor)
  5. roundUp(int groupSize, int globalSize)
  6. roundUp(int i, int snap)
  7. roundUp(int n, int nearestMultiple)
  8. roundUp(int ndigits)
  9. roundUp(int num, int divisor)