public static long floorDiv (long x, long 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 the ` Long.MIN_VALUE`

.

See `Math.floorDiv`

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

operator.

`x` | the dividend | |

`y` | the divisor |

` long`

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

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

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

Diagram: Math