Check if number has been entered

How can I check if the value entered in the textbox is number or not.
Dont want to restrict the user to enter number by putting restrict etc.
just want to validate at the end
How?