简体   繁体   中英

Working with scanf and floats in C

我想扫描文件中的001.120浮点数或220.550或123.125等,并以三位数和三位十进制数浮动,该怎么做,就像%03.3f一样?

No, it's just %f . It doesn't need to know the specifics because it can deduce them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM