MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / is_float

Function is_float

NLP/Text2SQL-BASELINE/text2sql/utils/text_utils.py:102–110  ·  view source on GitHub ↗

is float

(value)

Source from the content-addressed store, hash-verified

100
101
102def is_float(value):
103 """is float"""
104 try:
105 float(value)
106 return True
107 except ValueError:
108 return False
109 except TypeError:
110 return False
111
112
113def cn_to_an(string):

Callers 1

str_to_yearFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected