MCPcopy 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
38def strToFloat(val):
39 try:
40 return float(val)
41 except ValueError:
42 return None
43
44
45class InputValidator(metaclass=ABCMeta):

Callers 3

_validateWithReasonMethod · 0.90
GetValueFloatMethod · 0.85
GetValueRangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected