Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Bairong-Xdynamics/MistakeNotebookLearning
/ _is_float
Function
_is_float
examples/utils/grader.py:49–54 ·
view source on GitHub ↗
(num: str)
Source
from the content-addressed store, hash-verified
47
48
49
def
_is_float(num: str) -> bool:
50
try
:
51
float(num)
52
return
True
53
except
ValueError:
54
return
False
55
56
57
def
_is_int(x: float) -> bool:
Callers
1
_normalize
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected