# tensorplay.functional.floor Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.floor.html ```python tensorplay.functional.floor(input, *, out=None) → Tensor ``` Returns a new tensor with the floor of the elements of input, the largest integer less than or equal to each element. For integer inputs, follows the array-api convention of returning a copy of the input tensor. $$\text{out}_{i} = \left\lfloor \text{input}_{i} \right\rfloor$$ Parameters: input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the input tensor. Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> a = tensorplay.randn(4) >>> a tensor([-0.8166, 1.5308, -0.2530, -0.2091]) >>> tensorplay.floor(a) tensor([-1., 1., -1., -1.]) ```