Hajk icon indicating copy to clipboard operation
Hajk copied to clipboard

Infoklick - Enhance filter roundToDecimals

Open maan002 opened this issue 1 year ago • 0 comments

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'

maan002 avatar Dec 13 '23 12:12 maan002