def fmt.exp
import bend-toon-codec@0.1.0.0/src/num.bend as Numimport Base
200# Exponent form: 1e+21, 1.5e-7. `p` is the point position, biased.
201def fmt.exp(+bp: U32, +d: String) -> String:
202 mantissa(d) ++ exp.sign.text(U32.is_gt(bp, bias()), bp)