def field_centi
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Configimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
89# A numeric settings field, centi, clamped; the default when absent or not a number.
90def field_centi(+j: Json.Json, +key: String, +d: U32, +lo: U32, +hi: U32) -> U32:
91 field_centi2(centi_of(num_text(Json.get(key, j))), d, lo, hi)