def field_centi

cswap-bend-cli@0.1.0.0 · daemon/config.bend:89

import cswap-bend-cli@0.1.0.0/daemon/config.bend as Config
import 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)

Uses (7)

Used by (2)