Java Integer Divide divide(int x, int y)

Here you can find the source of divide(int x, int y)

Description

divide

License

Creative Commons License

Declaration

public static int divide(int x, int y) 

Method Source Code

//package com.java2s;
//License from project: Creative Commons License 

public class Main {
    public static int divide(int x, int y) {
        int z = x / y;
        return z < 0 ? z - 1 : z;
    }// w ww  . j a  va2 s  . co  m
}

Related

  1. dividable(final String charBitmap, final int row)
  2. divide(final String bitmap, final int row)
  3. divide(int numerator, int denominator)
  4. divide(int numerator, int denominator)
  5. divide(int value, int divideBy)
  6. Divide(Object in, int val)
  7. divideAndCeil(int a, int b)
  8. divideAndCeil(int dividend, int divisor)
  9. divideAndRound(int dividend, int divisor)