---
title: "Floor ViewHelper <f:floor>"
manual: "Fluid Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/fluid:typo3fluid-fluid-floor"
source: "ViewHelpers/Fluid/Floor.rst"
rendered: "2026-09-26T08:24:58+00:00"
---

# Floor ViewHelper `<f:floor>` {#typo3fluid-fluid-floor}

> [!NOTE]
> This reference is part of the documentation of Fluid Standalone.
> If you are working with Fluid in TYPO3 CMS, please refer to
> [TYPO3's ViewHelper reference](https://docs.typo3.org/other/typo3/view-helper-reference/14.3/en-us/Global/Floor.html) instead.

The FloorViewHelper rounds down a float value to the next integer.
The ViewHelper mimics PHP's `floor()` function.

## Examples {#examples}

### Value argument {#value-argument}

```php
<f:floor value="123.456" />

```

```text
123
```

### Tag content as value {#tag-content-as-value}

```php
<f:floor>123.456</f:floor>

```

```text
123
```

Go to the source code of this ViewHelper: [FloorViewHelper.php (GitHub)](https://github.com/TYPO3/Fluid/blob/main/src/ViewHelpers/FloorViewHelper.php).

**Arguments**

The following arguments are available for the floor ViewHelper:

-   **value**

    -   *Type:* float

    The number that should be rounded down
