def repr
import cswap-bend-cli@0.1.0.0/settings.bend as Settingsimport 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)