Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pyfa-org/Pyfa
/ strToFloat
Function
strToFloat
gui/utils/inputs.py:38–42 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
36
37
38
def
strToFloat(val):
39
try
:
40
return
float(val)
41
except
ValueError:
42
return
None
43
44
45
class
InputValidator(metaclass=ABCMeta):
Callers
3
_validateWithReason
Method · 0.90
GetValueFloat
Method · 0.85
GetValueRange
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected