numpy.floor_divide¶
- numpy.floor_divide(x1, x2[, out]) = <ufunc 'floor_divide'>¶
Return the largest integer smaller or equal to the division of the inputs.
Parameters: x1 : array_like
Numerator.
x2 : array_like
Denominator.
Returns: y : ndarray
y = floor(x1/x2)
See also
Examples
>>> np.floor_divide(7,3) 2 >>> np.floor_divide([1., 2., 3., 4.], 2.5) array([ 0., 0., 1., 1.])