Whatever you enter as input, the input function converts it into a string. Where is the antenna in this remote control board? To learn more, see our tips on writing great answers. In this tutorial, I will be making a program on how to take only an integer as an input. Python » Clojure » Perl Programmin » GO Programming » R Programming » ... Home / allow only numbers / Angular 7 / Angular 7 allow only numbers in textbox using directive / Angular 8 / angular directive / restrict alphabets and special characters / Angular 7 Directive - Allow Only Numbers Input in TextBox Example. Tip: Always add the