def repr

cswap-bend-cli@0.1.0.0 · settings.bend:263

import cswap-bend-cli@0.1.0.0/settings.bend as Settings
import Base

263# Python's repr(float) of the decimal.
264def repr(d: Dec) -> String:
265  match d:
266    case Dec{neg, +i, +f}:
267      repr.pick(String.eq(i, "0") && String.starts_with(f, "0000"), neg, i, f)

Uses (6)

Used by (3)