# floordiv

Source: https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/floordiv

```python
Graph.floordiv(x, y, *, name=None)
```

Calculate the element-wise rounded-down division between real numbers, np.ndarrays, Tensors,
Pwcs, or Stfs. You can also use the arithmetic operator `//` to calculate their floor
division.

Considering numbers and np.ndarrays as Tensors, if the two objects are of the same type,
so is the returned object. If the objects have different types, Pwcs and Stfs can operate
with a tensor (returning a Pwc or Stf, respectively).

This operation supports broadcasting between the different objects.
When operating a tensor-like object with an Stf or a Pwc, the time dimension of the
latter is ignored.

### Parameters
* **x** (*number* *or* *np.ndarray* *or* [*Tensor*](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Tensor.md#boulderopal.graph.Tensor) *or* [*Pwc*](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Pwc.md#boulderopal.graph.Pwc) *or* [*Stf*](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Stf.md#boulderopal.graph.Stf)) – The numerator, $x$. Must be real-valued.
* **y** (*number* *or* *np.ndarray* *or* [*Tensor*](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Tensor.md#boulderopal.graph.Tensor) *or* [*Pwc*](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Pwc.md#boulderopal.graph.Pwc) *or* [*Stf*](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Stf.md#boulderopal.graph.Stf)) – The denominator, $y$. Must be real-valued.
* **name** (*str* *or* *None* *,* *optional*) – The name of the node. You can only provide a name if neither x nor y are Stfs.
### Returns
The element-wise rounded-down division $\lfloor x/y \rfloor$.
### Return type
[Tensor](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Tensor.md#boulderopal.graph.Tensor) or [Pwc](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Pwc.md#boulderopal.graph.Pwc) or [Stf](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Stf.md#boulderopal.graph.Stf)

### SEE ALSO
[`Graph.truediv`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/truediv.md#boulderopal.graph.Graph.truediv)
: Divide two values.
