Num.fmt.exp: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/num.bend as Num Lines 200-202 of bend-toon-codec@0.1.0.0/src/num.bend: https://jend.leeeet.dev/read.txt?path=bend-toon-codec@0.1.0.0/src/num.bend&start_line=200&end_line=202 import Base # Exponent form: 1e+21, 1.5e-7. `p` is the point position, biased. def fmt.exp(+bp: U32, +d: String) -> String: mantissa(d) ++ exp.sign.text(U32.is_gt(bp, bias()), bp) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_gt https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/num.bend&name=bias https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/num.bend&name=exp.sign.text https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/num.bend&name=mantissa