def round.keep

emerging-ezjson@1.3.0.0 · src/fixed.bend:246

import emerging-ezjson@1.3.0.0/src/fixed.bend as Fixed
import Base

246# the kept digits split at the last place
247def round.keep(+left: String, pair: String & String) -> String:
248  (kept, dropped) = pair
249  +all = String.reverse.go(kept, left)
250  bump(round.up(dropped, all), all)

Uses (6)

Used by (1)