Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PRIME-RL/PRIME
/ _is_int
Function
_is_int
data_preprocessing/math_util/__init__.py:62–66 ·
view source on GitHub ↗
(x: float)
Source
from the content-addressed store, hash-verified
60
61
62
def
_is_int(x: float) -> bool:
63
try
:
64
return
abs(x - int(round(x))) <= 1e-7
65
except
:
66
return
False
67
68
69
def
_is_frac(expr: str) -> bool:
Callers
1
_normalize
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected