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

Function clamp_01

tests/loadtest/tools/dashboard_parser.py:459–462  ·  view source on GitHub ↗
(value: float | None)

Source from the content-addressed store, hash-verified

457
458
459def clamp_01(value: float | None) -> float | None:
460 if value is None:
461 return None
462 return min(1.0, max(0.0, value))
463
464
465def to_float(value: Any) -> float | None:

Callers 2

parse_csvFunction · 0.85
parse_ndjsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected