Java Number Round roundUpDivision(final int dividend, final int divider)

Here you can find the source of roundUpDivision(final int dividend, final int divider)

Description

round Up Division

License

Open Source License

Declaration

public static int roundUpDivision(final int dividend, final int divider) 

Method Source Code

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

public class Main {
    public static int roundUpDivision(final int dividend, final int divider) {
        if (dividend == 0) {
            return 0;
        }/*from  w  w  w .j  a v a 2  s .  c  o m*/
        return (dividend + divider - 1) / divider;
    }
}

Related

  1. roundUp(long number, long mod)
  2. roundUp(long position, long sectionAlignment)
  3. roundUp(long size, int blockSize)
  4. roundUp(long val, long delta)
  5. roundup_2n(long val, int blocksize)
  6. roundUpDown(int number, int by)
  7. roundUpIfNecessary(long timeout, long convertedTimeout)
  8. roundUpLong(long value, long interval)
  9. roundUpLong(long x, long blockSizePowerOf2)