Constants§
- FMT_
MAX_ EXP_ PRECISION - FMT_
MAX_ PRECISION - Rust’s
format!("{:.*}", n, x)panics whennexceeds the fmt runtime’s internal precision limit. User-supplied precision can legally reach far higher values (e.g.f"{1.5:.1000000}") — clamp here so we produce a (truncated-but-valid) output instead of aborting the interpreter. Harmless in practice: f64 carries only ~17 significant digits, so precision beyond 65K is padding zeros at best.