MCPcopy
hub / github.com/deepseek-ai/DeepSeek-Coder / is_digit

Function is_digit

Evaluation/PAL-Math/utils/grader.py:15–20  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

13
14
15def is_digit(s):
16 try:
17 float(str(s).replace(",", ""))
18 return True
19 except ValueError:
20 return False
21
22def math_equal(prediction: Union[bool, float, str],
23 reference: Union[float, str],

Callers 1

math_equalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected