Ceil ViewHelper <f: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 instead.
The CeilViewHelper rounds up a float value to the next integer.
The ViewHelper mimics PHP's ceil function.
Examples
Value argument
<f:ceil value="123.456" />
Copied!
124
Copied!
Tag content as value
<f:ceil>123.456</f:ceil>
Copied!
124
Copied!
Go to the source code of this ViewHelper: CeilViewHelper.php (GitHub).
Arguments
The following arguments are available for the ceil ViewHelper:
value
-
- Type
- float
The number that should be rounded up