Symfony's NumberType as HTML5 input field and a custom locale setting
问题 My application prefers de as locale to show numbers like 1.234.567,89 instead of 1,234,567.89 (or 1234567,89 instead of 1234567.89). So i have changed the local parameter in the config.yml : parameters: locale: de Furthermore i use the NumberType to generate my form fields: class MyFormType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('myNumber', NumberType::class, [ 'label' => 'Tax [EURO]', 'required' => false, 'scale' => 2,