The IntegerType supports floats, but as the name suggests it should only accept integers, i.e. whole numbers.
The NumberType supports floats, locale specific numeric strings (e.g. "40,000") etc.
I propose a change to these 2 types:
IntegerType: should be used for whole integers as the name suggests
NumberType: should be used for floats (rendering as an input[type="number"]), and have a new option (support_locale_strings or something similar) so that it renders as input[type="text"] and has the relevant attached NumberToLocalizedStringTransformer.
This is obviously a BC break so marked it for 3.0.
The
IntegerTypesupports floats, but as the name suggests it should only accept integers, i.e. whole numbers.The
NumberTypesupports floats, locale specific numeric strings (e.g. "40,000") etc.I propose a change to these 2 types:
IntegerType: should be used for whole integers as the name suggestsNumberType: should be used for floats (rendering as aninput[type="number"]), and have a new option (support_locale_stringsor something similar) so that it renders asinput[type="text"]and has the relevant attachedNumberToLocalizedStringTransformer.This is obviously a BC break so marked it for 3.0.