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