Convert real number to string with 2 decimal places, in Rust. ... Rust. let s = format!("{:.2}", x);. Demo · Doc. C; C++; C#; D; Dart; Elixir; Erlang ...
確定! 回上一頁