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

Function _coerce_float

scripts/add_must_read.py:57–61  ·  view source on GitHub ↗
(value, default=0.0)

Source from the content-addressed store, hash-verified

55
56def _coerce_float(value, default=0.0):
57 try:
58 return float(value)
59 except (TypeError, ValueError):
60 return default
61
62
63def _resolve_broad_must_read_keyword(value):
64 cleaned = str(value or "").strip()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected