public static long floorDiv (long x, int y)

Returns the largest (closest to positive infinity)
` long`

value that is less than or equal to the algebraic quotient.
There is one special case, if the dividend is the
Long.MIN_VALUE and the divisor is ` -1`

,
then integer overflow occurs and
the result is equal to ` Long.MIN_VALUE`

.

See `Math.floorDiv`

for examples and
a comparison to the integer division ` /`

operator.

`x` | the dividend | |

`y` | the divisor |

` int`

value that is less than or equal to the algebraic quotient.

`ArithmeticException` | if the divisor ` y` is zero |

Math.floorDiv(long, int), Math.floor(double)

Diagram: Math