--TEST--
"number_format" filter with defaults.
--TEMPLATE--
{{ 20|number_format }}
{{ 20.25|number_format }}
{{ 20.25|number_format(1) }}
{{ 20.25|number_format(2, ',') }}
{{ 1020.25|number_format }}
{{ 1020.25|number_format(2, ',') }}
{{ 1020.25|number_format(2, ',', '.') }}
--DATA--
$twig->getExtension(\Twig\Extension\CoreExtension::class)->setNumberFormat(2, '!', '=');
return []
--EXPECT--
20!00
20!25
20!3
20,25
1=020!25
1=020,25
1.020,25
