Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
15
def
is_digit(s):
16
try
:
17
float(str(s).replace(
","
,
""
))
18
return
True
19
except
ValueError:
20
return
False
21
22
def
math_equal(prediction: Union[bool, float, str],
23
reference: Union[float, str],
Callers
1
math_equal
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected