-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
Description
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 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.
AxxiD, Skyoddler and colinodell