Anybody know a simple routine that checks whether a string is valid number or not?

Any help would be good.