rouille du point flottant à l'argent
fn money_string(amount: f64) -> String {
format!("${:.2}", amount)
}
fn main() {
println!("{}", money_string(123.45));
}
Mackerel