Setting the [type] to "number" will render a number input.

This input type only allows to enter numbers. One of the difference to the native <input type="number"> is that <uwc-input type="number"> formats its displayed value according to the nearest [lang] attribute consistently across browsers.

Another is that accessing the .value will return a parsed number already or undefined if the number cannot be parsed.

Please keep in mind that if you set .value to a string (which is still allowed) that string MUST be formatted with a . (dot) as the decimal separator and without grouping separators.