numberformat
The numberformat
filter is used to format a decimal number. Behind the scenes it uses java.text.DecimalFormat
.
twig
{{ 3.141592653 | numberFormat("#.##") }}
The above example will output the following:
twig
3.14
Arguments
- format
🚀 New! Kestra raises $3 million to grow Learn more
The numberformat
filter is used to format a decimal number. Behind the scenes it uses java.text.DecimalFormat
.
{{ 3.141592653 | numberFormat("#.##") }}
The above example will output the following:
3.14