def sci
import cswap-bend-cli@0.1.0.0/settings.bend as Settingsimport Base
252# 1e-05 style, for 0 < value < 1e-4 (the fraction has four leading zeros).
253def sci(neg: Bool, +f: String) -> String:
254 sel.s(neg, "-", "") ++ sci.mant(drop0(f)) ++ "e-" ++ pad2(1n+lead0(f))