Dataformatstring属性为百万或十亿 [英] Dataformatstring property for million or billion
本文介绍了Dataformatstring属性为百万或十亿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怀疑,数百万或数十亿的数据格式是什么
编辑:
根据下面的评论,OP试图以单词显示数字
例如1,000,000作为1百万或1,000,000,000作为10亿
希望澄清所要求的内容。
I Have one doubt, what is the dataformatstring for million or billion
Based on the comments below the OP is trying to display the number in words
e.g. 1,000,000 as 1 Million or 1,000,000,000 as 1 Billion
Hope that clarifys what is requested.
推荐答案
对于数字;
{0:N}
或{0:Nx}
其中x是要显示的小数位数,您也可以使用小写字母n。
对于货币,请使用与数字相同的,但更改C / c的N / n
For numbers;
{0:N}
or{0:Nx}
where x is the number of decimal places to show, you can also use lower case n.
For currency, use the same as number, but change the N/n for C/c
这篇关于Dataformatstring属性为百万或十亿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文