def centi

cswap-bend-cli@0.1.0.0 · daemon/config.bend:63

import cswap-bend-cli@0.1.0.0/daemon/config.bend as Config
import Base

63# "12.34" -> 1234, "7" -> 700, "5.5" -> 550; None for anything else (signs,
64# exponents, text). Digits past the second decimal are dropped.
65def centi(+t: String) -> Maybe<&2, U32>:
66  centi2(String.split(t, '.'))

Uses (6)

Used by (6)