MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _to_float

Function _to_float

deployments/desktop/shared/agents.py:134–138  ·  view source on GitHub ↗
(value: Any, default: float = 0.0)

Source from the content-addressed store, hash-verified

132 return default
133
134
135def _to_float(value: Any, default: float = 0.0) -> float:
136 try:
137 return float(value)
138 except (TypeError, ValueError):
139 return default
140
141

Callers 7

_paper_cardFunction · 0.85
_profile_summaryFunction · 0.85
settingsFunction · 0.85
_parse_weight_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected