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

Infoklick - Enhance filter roundToDecimals #1445

Open
maan002 opened this issue Dec 13, 2023 · 0 comments
Open

Infoklick - Enhance filter roundToDecimals #1445

maan002 opened this issue Dec 13, 2023 · 0 comments
Milestone

Comments

@maan002
Copy link
Contributor

maan002 commented Dec 13, 2023

Is your feature request related to a problem? Please describe.
Sometimes a value will be either a string or a number. If the value is a string, you should be able to specify that this is correct and the value should be returned without an error message.

Describe the solution you'd like
Add a parameter to roundToDecimals to be able to specify this. The parameter should have a default value that retains the filter's previous functionality.

Example previous functionality:
{'45.32465456'|roundToDecimals(2)}
outputs: 45,32

Example new functionality:
{'Not a number'|roundToDecimals(2,1)}
outputs: 'Not a number'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

No branches or pull requests

2 participants