Field Customization

Field Customization

I am creating custom fields specifically for numbers. I tried using the fields number and integer, but when I input letters, it still allows letters to be inputted. How can I make a certain field accept only numbers?