def fmt
import bend-toon-codec@0.1.0.0/src/num.bend as Numimport Base
232# Digits (no leading or trailing zeros) and biased point position to text.
233def fmt(+bp: U32, +d: String) -> String:
234 fmt.low(U32.is_gt(bp, (bias() + 21 : U32)) || U32.is_lt(bp, (bias() - 5 : U32)), bp, d)