Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

twig format currency

{# €12.34 #}
{{ '12.345'|format_currency('EUR', {rounding_mode: 'floor'}) }}

{# €1,000,000.0000 #}
{{ '1000000'|format_currency('EUR', {fraction_digit: 4}) }}
Source by twig.symfony.com #
 
PREVIOUS NEXT
Tagged: #twig #format #currency
ADD COMMENT
Topic
Name
2+4 =