---
title: "Ceil ViewHelper <f:ceil>"
manual: "Fluid Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/fluid:typo3fluid-fluid-ceil"
source: "ViewHelpers/Fluid/Ceil.rst"
rendered: "2026-10-08T14:12:40+00:00"
---

# Ceil ViewHelper `<f:ceil>` {#typo3fluid-fluid-ceil}

> [!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/Ceil.html) instead.

The CeilViewHelper rounds up a float value to the next integer.
The ViewHelper mimics PHP's `ceil()` function.

## Examples {#examples}

### Value argument {#value-argument}

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

```

```text
124
```

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

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

```

```text
124
```

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

**Arguments**

The following arguments are available for the ceil ViewHelper:

-   **value**

    -   *Type:* float

    The number that should be rounded up
