human
check if a string is a number
assistant
Here is some code to function to check if a string is a number

isdigit()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.