TYPO3 / Fluid

Fluid template rendering engine - Standalone version
GNU Lesser General Public License v3.0
151 stars 93 forks source link

[FEATURE] Add f:round, f:ceil and f:floor ViewHelpers #868

Open s2b opened 4 months ago

s2b commented 4 months ago

RoundViewHelper, CeilViewHelper and FloorViewHelper provide three different ways of rounding to Fluid template.

Examples

<f:round value="123.456" /> <!-- Outputs 123.46 -->
<f:ceil value="123.456" /> <!-- Outputs 124 -->
<f:floor value="123.456" /> <!-- Outputs 123 -->