MCPcopy Create free account
hub / github.com/PRIME-RL/PRIME / _is_float

Function _is_float

data_preprocessing/math_util/__init__.py:54–59  ·  view source on GitHub ↗
(num: str)

Source from the content-addressed store, hash-verified

52
53
54def _is_float(num: str) -> bool:
55 try:
56 float(num)
57 return True
58 except ValueError:
59 return False
60
61
62def _is_int(x: float) -> bool:

Callers 1

_normalizeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected