def pct_text
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmtimport Base
59# " 47%" (width 4), as the reference's `{pct:3.0f}%`.
60def pct_text(+c: U32) -> String:
61 pad_left(U32.show(round_even(c)), 3n) ++ "%"
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmtimport Base
59# " 47%" (width 4), as the reference's `{pct:3.0f}%`.
60def pct_text(+c: U32) -> String:
61 pad_left(U32.show(round_even(c)), 3n) ++ "%"