MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / to_float

Function to_float

tests/loadtest/tools/dashboard_parser.py:465–471  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

463
464
465def to_float(value: Any) -> float | None:
466 if value is None:
467 return None
468 try:
469 return float(value)
470 except (TypeError, ValueError):
471 return None
472
473
474def format_compact(value: float | None) -> str:

Callers 3

parse_summaryFunction · 0.85
parse_csvFunction · 0.85
parse_ndjsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected