Java Integer Divide div(int val, int coe)

Here you can find the source of div(int val, int coe)

Description

div

License

Open Source License

Declaration


public static int div(int val, int coe) 

Method Source Code

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

public class Main {

    public static int div(int val, int coe) {
        return val / coe + (val % coe > 0 ? 1 : 0);
    }/*www  .  j a  v  a2 s  . c o  m*/
}

Related

  1. div(int a, int b)
  2. div(int a, int b)
  3. div(int a, int b)
  4. div(int dividend, int divisor)
  5. divce(long size, long divider, int i)
  6. divCeil(int a, int b)
  7. divCeil(int a, int b)
  8. divCeil(int a, int b)