【发布时间】:2011-07-22 12:41:47
【问题描述】:
可能重复:
.NET String.Format() to add commas in thousands place for a number
你好
我有这样的金钱价值
12345
123456
1234567
1234567,89
我想要的格式是这样的。
12,345
123,456
1,234,567
1,234,567, 89
我如何使用String.Format 做到这一点?
【问题讨论】:
-
请将最后一个大小写更正为 .89
标签: c# .net string formatting format