当前位置:网站首页>Meaning of C language% 7.2d, --7d,% 7.2f,% 0.2f
Meaning of C language% 7.2d, --7d,% 7.2f,% 0.2f
2022-04-22 12:19:00 【Yun Xiaoyi】
1.%d Is the output shaping format , namely int Type data
%-7d It's also plastic surgery , But the output is left aligned , Minimum output 7 position , Insufficient 7 Fill in the space at the right end of bit .%07d Medium d representative : Decimal signed integer
7 representative : The maximum width of the output number , Numbers less than this width are preceded by spaces , Greater than will be output according to its actual length
0 representative : This is the same as the above 7 Work together , Numbers smaller than this width are preceded by 0 To mend
2.%7.2f Yes , Indicates the least output 7 Bit floating point , There are two decimal places
%7.2f Medium 2 Indicates that the number of decimal places is 2 position ,7 Indicates the least output 7 position , Fill in the space at the left end of the insufficient , such as 123.4567 The output is a space 123.46
%0.2 f Or you could write it as %.2f Means to retain two decimal places

Finally, if you think my writing is good , Please don't forget to like , Collection , Pay attention (。・ω・。)
版权声明
本文为[Yun Xiaoyi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221214264801.html
边栏推荐
- Ptorch quantification (torch. Quantification)
- Pytorch processes RNN input variable length sequence padding
- js 【详解】闭包
- 【深入理解TcaplusDB技术】扫描数据接口说明——[List表]
- [in depth understanding of tcallusdb technology] data interface description for reading the specified location in the list - [list table]
- Ner brief overview
- Codeforces Round #783 (Div. 2)
- [concurrent programming 049] talk about the classification of reordering?
- STM32F429BIT6 SD卡模拟U盘
- 【分布式】分布式事务与锁
猜你喜欢
![[in depth understanding of tcallusdb technology] description of data interface for batch deletion of specified location in list - [list table]](/img/ed/cccd5dee09d2f0a3e6c788bd265b36.png)
[in depth understanding of tcallusdb technology] description of data interface for batch deletion of specified location in list - [list table]

Codeforces Round #783 (Div. 2)

【并发编程051】volatile 内存语义的实现原理

【keras入门】MNIST数据集分类

Cvpr2022 𞓜 3D reconstruction of mobile end hand

刷了一千道选择题,我总结了这些C语言易错点【第二弹】

canvas系列教程01——直线、三角形、多边形、矩形、调色板

MySQL之父:代码应该一次写成,而不是后面再改

CVPR2022 | 移动端手部三维重建

【并发编程050】内存屏障的种类以及说明?
随机推荐
带你详细入门华为云会议【玩转华为云】
电路实验——实验四 戴维南定理与诺顿定理
UML summary
日撸代码300行学习笔记 Day 47
Codeforces Round #783 (Div. 2)
案例4-1.4:堆中的路径 (小顶堆的模拟建立和模拟路径)
Implementation and principle analysis of synchronized
Developer friendly public chain Neo | how to connect web2 developers to Web3 world
Father of MySQL: the code should be written at once, not later
案例4-1.7:文件傳輸(並查集)
redis setex和set 的区别
Codeforces Round #783 (Div. 2)
Where have all the Internet people who left their jobs gone?
[concurrent programming 052] talk about double check lock and its advantages?
電工第二講
1086 tree traversals again (25 points)
1086 Tree Traversals Again (25 分)
【keras入门】MNIST数据集分类
base64加密解密和json处理
【并发编程052】说说双重检查锁以及其优点?