I don't know that you can achieve this directly form the input widget.
I believe you can accomplish this with the UX Manipulator widget in the app store. Based on my research, the input tag needs an attribute set to identify it as a number, so the end result should be something like:
From the configuration documentation of this widget:
Based on this, you could do the following:
The input widget is of type text. In order to get the numeric keyboard on mobile devices, you need to use
<input type="number"> as stated by Eric.
We investigated this option thoroughly as we wanted to implement this in the platform. Like Andrej said, we encountered quite a few missing options and inconsistent browser support.
One of the problems is that some mobile browsers assume the input language is the one of the operating system while the client assumes input is in the locale of the logged in user. These are not necessarily the same. This causes a problem while parsing decimal and thousand separators.
Another issue is that we have no control over how to display the number, meaning formatting won't work either.
I won't bore you with other things we found, but take into account that if you use or create a custom widget to input and display numeric values that there are some limitations or inconsistencies across devices and platforms.