sbt-idp/cope2n-api/fwd_api/utils/number.py
2023-12-15 12:43:19 +07:00

5 lines
123 B
Python

def is_number_repl_isdigit(s):
""" Returns True if string is a number. """
return s.replace('.', '', 1).isdigit()