Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

s2b
Copy link
Contributor

@s2b s2b commented Apr 18, 2024

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 -->

s2b added 2 commits April 18, 2024 17:41
RoundViewHelper, CeilViewHelper and FloorViewHelper provide three different ways of rounding to Fluid template.

## Examples

```xml
<f:round value="123.456" /> <!-- Outputs 123.46 -->
<f:ceil value="123.456" /> <!-- Outputs 124 -->
<f:floor value="123.456" /> <!-- Outputs 123 -->
```
@s2b s2b marked this pull request as draft August 18, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant