So according to here: http://docs.coronalabs.com/api/type/TextField/inputType.html
I should be able to choose “decimal” as input type. However I just tested this with a debug build on my Galaxy Nexus and the native keyboard that popped up was the regular one, allowing me to enter anything.
I need to only allow numbers, the “-” for negative numbers, and decimals.
I guess I could make some kind of checker when the box loses focus yelling at the user to only enter valid things, but that’s really silly seeing as the native keyboards for IOS and Android have specific keyboards for numbers.