sbt-idp/cope2n-api/fwd_api/utils/NumberUtils.py

5 lines
123 B
Python
Raw Normal View History

2023-11-30 11:19:06 +00:00
def is_number_repl_isdigit(s):
""" Returns True if string is a number. """
return s.replace('.', '', 1).isdigit()