Change input field type for numbers

I need to change the input field type for numbers, so that numeric values are entered into their own field class rather than textarea.
can anyone please advise?

Many thanks