# tf.math.floormod

<br />

Returns element-wise remainder of division.

#### View aliases


**Main aliases**

[`tf.math.mod`](https://www.tensorflow.org/api_docs/python/tf/math/floormod)
**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.floormod`](https://www.tensorflow.org/api_docs/python/tf/math/floormod), [`tf.compat.v1.mod`](https://www.tensorflow.org/api_docs/python/tf/math/floormod)

<br />

    tf.math.floormod(
        x: Annotated[Any, https://www.tensorflow.org/api_docs/python/tf/raw_ops/Any],
        y: Annotated[Any, https://www.tensorflow.org/api_docs/python/tf/raw_ops/Any],
        name=None
    ) -> Annotated[Any, https://www.tensorflow.org/api_docs/python/tf/raw_ops/Any]

This follows Python semantics in that the
result here is consistent with a flooring divide. E.g.
`floor(x / y) * y + floormod(x, y) = x`, regardless of the signs of x and y.

> [!NOTE]
> **Note:** [`math.floormod`](https://www.tensorflow.org/api_docs/python/tf/math/floormod) supports broadcasting. More about broadcasting [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A `Tensor`. Must be one of the following types: `int8`, `int16`, `int32`, `int64`, `uint8`, `uint16`, `uint32`, `uint64`, `bfloat16`, `half`, `float32`, `float64`. |
| `y` | A `Tensor`. Must have the same type as `x`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `x`. ||

<br />