在 C 中使用 scanf 和 floats

Working with scanf and floats in C

我想扫描文件中的 001.120 浮点数或 220.550 或 123.125 等浮点数,以及三位浮点数和三位小数,我该怎么做,比如它是 %03.3f 吗?

不,只是 %f。它不需要知道细节,因为它可以推断出它们。