Verify if is a number

hi

I have a textfield. I want to verify if the content inserted by the use is a number, and if it is not I want to give a message.

How can I verify if it is a number?

Thanks