MCPcopy Create free account
hub / github.com/Bairong-Xdynamics/MistakeNotebookLearning / _is_int

Function _is_int

examples/utils/grader.py:57–61  ·  view source on GitHub ↗
(x: float)

Source from the content-addressed store, hash-verified

55
56
57def _is_int(x: float) -> bool:
58 try:
59 return abs(x - int(round(x))) <= 1e-7
60 except:
61 return False
62
63
64def _is_frac(expr: str) -> bool:

Callers 1

_normalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected