A number field, the APG's editable spinbutton and Zag's number input: a
text field with role="spinbutton" that the arrows step, PageUp and
PageDown step by a page, and Home and End take to the bounds, between a
decrement and an increment button outside the tab order. The number is the
application's: the view draws value and sends onChange with the next
one, clamped and on the step; typed text commits on change (blur or
Enter), and text that is no number sends the value back unchanged.
How the number reads in the field and to a screen reader, and how typed
text is read back: the two together, so what the field draws is what it
accepts. locale draws and reads that locale's marks (de-DE: 1.234,5);
format with its parse is for anything else; with neither, String and a
plain number (a lone comma reads as the decimal mark).
The number text reads as in locale, or none. The locale's group mark
goes whatever spelling the runtime's ICU gives it (' or a typographic
one, a space or a no-break one), its decimal mark becomes ., and a typed
. stays a decimal point where the locale's decimal is not . and its
group is not either: people type the dot. Without a locale the text is a
plain number, with a lone comma as its decimal mark.