Rust Convert Number Floating Point, en une chaîne, avec des chiffres décimaux.
let s = format!("{:.2}", x);
Mackerel
let s = format!("{:.2}", x);