def fmt.exp

bend-toon-codec@0.1.0.0 · src/num.bend:200

import bend-toon-codec@0.1.0.0/src/num.bend as Num
import 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)

Uses (7)

Used by (1)