Heads up! This post was written 13 years ago. Some information might be outdated or may have changed since then.
def is_numeric(value):
return str(value).replace("-", "").replace(".", "").isdigit() Може да се използва по следния начин: is_numeric("41.1")