def frac

cswap-bend-cli@0.1.0.0 · daemon/events.bend:26

import cswap-bend-cli@0.1.0.0/daemon/events.bend as Events
import Base

26# Digits after the point with a trailing zero dropped, at least one digit.
27def frac(+cents: U32) -> String:
28  sel(U32.is_eq((cents % 10 : U32), 0), U32.show((cents / 10 : U32)), two(cents))

Uses (8)

Used by (1)