【发布时间】:2021-12-17 10:51:44
【问题描述】:
尝试复制以下 C printf 调用
printf("%6.1f %6.1f %6.1f\n", x, y, z);
在 rust 中,我在文档中找不到它。我需要 6 位宽,小数点后 1 位。
我第一次很难找到我需要的东西。
【问题讨论】:
标签: rust printing formatting width
尝试复制以下 C printf 调用
printf("%6.1f %6.1f %6.1f\n", x, y, z);
在 rust 中,我在文档中找不到它。我需要 6 位宽,小数点后 1 位。
我第一次很难找到我需要的东西。
【问题讨论】:
标签: rust printing formatting width
【讨论】:
std::fmt...超级!谢谢!