Floor ViewHelper <f:floor>
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