Fmt.Short.up: def of bend-kit-fmt@0.1.0.0 Import: import bend-kit-fmt@0.1.0.0/fmt.bend as Fmt Lines 275-291 of bend-kit-fmt@0.1.0.0/fmt.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-fmt@0.1.0.0/fmt.bend&start_line=275&end_line=291 import Base # k is the decimal exponent plus 64: v = 0.d1d2... * 10^(k - 64). def Short.up(f: Nat, +even: Bool, big: Bool, st: St, +k: U32) -> St & U32: match f: case 0n: (st, k) case 1n+g: match big: case False{}: (st, k) case True{}: match st: case St{r, s, mp, mm}: +r1 = {r : List<&2, U32>} +mp1 = {mp : List<&2, U32>} +s10 = {Big.mul(s, 10, 0) : List<&2, U32>} Short.up(g, even, Short.high(even, r1, mp1, s10), St{r1, s10, mp1, mm}, U32.add(k, 1)) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=bend-kit-fmt@0.1.0.0/fmt.bend&name=Big.mul https://jend.leeeet.dev/definition.txt?path=bend-kit-fmt@0.1.0.0/fmt.bend&name=Short.high https://jend.leeeet.dev/definition.txt?path=bend-kit-fmt@0.1.0.0/fmt.bend&name=St