def Short.fixed.big

bend-kit-fmt@0.1.0.0 · fmt.bend:370

import bend-kit-fmt@0.1.0.0/fmt.bend as Fmt
import Base

370def Short.fixed.big(ge: Bool, +ds: String, +kn: Nat) -> String:
371  match ge:
372    case True{}:
373      ds ++ Fmt.fill(Nat.sub(kn, String.length(ds)), '0') ++ ".0"
374    case False{}:
375      String.take(ds, kn) ++ "." ++ String.drop(ds, kn)

Uses (10)

Used by (1)