Text.pct1.show: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/usage/text.bend as Text Lines 128-131 of cswap-bend-cli@0.1.0.0/usage/text.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/usage/text.bend&start_line=128&end_line=131 import Base # round(float(s) * 100, 1) for a decimal fraction: tenths of a percent, as # text. `0.25` -> `25.0`, `0.4256` -> `42.6`. def pct1.show(+n: U32) -> String: U32.show((n / 10 : U32)) ++ "." ++ U32.show((n % 10 : U32)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mod https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.show