def exp.cap
import cswap-bend-cli@0.1.0.0/settings.bend as Settingsimport Base
112# The exponent digits as a Nat, capped at 400 (beyond that the value clamps
113# or vanishes the same way).
114def exp.cap(+d: String) -> Nat:
115 exp.cap2(sel.s(Nat.is_gt(String.length(d), 3n), "400", d))