Is Numeric

Check if a string represents a valid number.

Code

General
try:
    float(str)
    result = True
except:
    result = False
result

Parameters

The string to check

Server

More Python Snippets