---
title: floor()
framework: coreml
role: symbol
role_heading: Instance Method
path: coreml/mltensor/floor()
---

# floor()

Computes the floor of the tensor’s elements.

## Declaration

```swift
func floor() -> MLTensor
```

## See Also

### Computing the absolute, ceiling and floor

- [abs()](coreml/mltensor/abs().md)
- [ceil()](coreml/mltensor/ceil().md)
