jax-js
    Preparing search index...

    Function floorDivide

    • Return the largest integer smaller or equal to the division of the inputs.

      The result is always rounded towards negative infinity.

      For floating-point inputs, this is equivalent to floor(x / y). For integer inputs, we use (x - remainder(x, y)) / y to handle negative values correctly (note: may overflow near int32 boundaries).

      Parameters

      Returns Array

      Element-wise floor division of x by y.