std.fmt.decimal [core] std.fmt.decimal.to_str_fixed pub fn to_str_fixed(x: f64, prec: int) -> str — x rendered with exactly prec digits after the decimal point, the exact value rounded half-even at the last one — %.*f, done right. std.fmt.decimal.to_str_exp pub fn to_str_exp(x: f64, prec: int) -> str — x in exponential notation with exactly prec digits after the point in the mantissa — %.*e, over the exact value, rounded half-even. std.fmt.decimal.to_str pub fn to_str(x: f64) -> str — x as the SHORTEST decimal string that reads back as exactly x — the round-trip contract the sprint names, and the rendering ordinary code wants: to_str(0.1) is "0.1", not 0.1's exact 55-digit expansion, and parse_float maps it back to the same bits. std.fmt.decimal.parse_float pub fn parse_float(s: str) -> f64 ! {parse, overflow} — s parsed as an f64, correctly rounded: the result is the double nearest the exact decimal value the text denotes, ties to even.