def pct.label

cswap-bend-cli@0.1.0.0 · policy/usage.bend:30

import cswap-bend-cli@0.1.0.0/policy/usage.bend as Usage
import Base

30# 4000 -> "40", 8550 -> "85.5": the reference's `%.10g` for two-digit inputs.
31def pct.label(+c: Nat) -> String:
32  pct.label.pair(Nat.divmod(c, 100n))

Uses (4)

Used by (1)