floor_division

paddle.compat. floor_division ( x, y ) [source]

Compatible division which act the same behaviour in Python3 and Python2, whose result will be a int value of floor(x / y) in Python3 and value of (x / y) in Python2.

Parameters
  • x (int|float) – The number to divide.

  • y (int|float) – The number to be divided

Returns

division result of x // y