如何在“0000012”的格式来显示“12”的数 [英] How to display the number “12” in the format of “0000012”
本文介绍了如何在“0000012”的格式来显示“12”的数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在0000012使用C#
解决方案
<格式$显示12的数字C $ C>无功海峡=的String.Format({0:D7},12);
How to display the number "12" in the format of "0000012" Using C#
解决方案
var str = string.Format("{0:d7}", 12);
这篇关于如何在“0000012”的格式来显示“12”的数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文