Java Number Divide divideAndCeilWithBase(int number, int base)

Here you can find the source of divideAndCeilWithBase(int number, int base)

Description

divide And Ceil With Base

License

Open Source License

Declaration

public static int divideAndCeilWithBase(int number, int base) 

Method Source Code

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

public class Main {
    public static int divideAndCeilWithBase(int number, int base) {
        int fp = number / base;
        int m = number % base;
        if (m == 0) {
            return fp;
        } else {/*from   w ww  . java 2s  .  c o m*/
            return fp + 1;
        }
    }
}

Related

  1. divide(Number n1, Number n2)
  2. divide(Number n1, Number n2)
  3. divide(Number num1, Number num2)
  4. divide(Number numerator, Number denominator)
  5. divide(Number numerator, Number divisor)
  6. divideAndRoundDown(long number, long divisor)
  7. divideBy(Number number1, Number number2)
  8. divideByRoundDown(Number number1, Number number2)
  9. division(Number numerator, Number denominator)