printf的格式说明符中的"F"是什么意思? [英] What does an 'F' in the Format specifier of printf mean?
本文介绍了printf的格式说明符中的"F"是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
printf中的%.8Ff
格式说明符是做什么的?
F
是什么意思?
What does %.8Ff
format specifier in printf do?
What does F
mean?
推荐答案
根据手动:
F转换说明符产生 用"INF","INFINITY"或"NAN"代替 "inf","infinity"或"nan", 分别.
The F conversion specifier produces "INF", "INFINITY", or "NAN" instead of "inf", "infinity", or "nan", respectively.
在格式字符串%.8Ff
中,f
被视为文字字符并打印为f
.
In your format string %.8Ff
, the f
is treated as a literal character and printed as an f
.
这篇关于printf的格式说明符中的"F"是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文