def pct1.show

cswap-bend-cli@0.1.0.0 · usage/text.bend:128

import cswap-bend-cli@0.1.0.0/usage/text.bend as Text
import Base

128# round(float(s) * 100, 1) for a decimal fraction: tenths of a percent, as
129# text. `0.25` -> `25.0`, `0.4256` -> `42.6`.
130def pct1.show(+n: U32) -> String:
131  U32.show((n / 10 : U32)) ++ "." ++ U32.show((n % 10 : U32))

Uses (6)

Used by (1)