<分区>
Possible Duplicate:
How do I format a double to currency rounded to the nearst dollar?
如何从货币中删除小数点?
以下是我如何将数字格式化为货币:
string.Format("{0:C}", Amount)
输出是 $20,000,000.00 但我需要 $20,000,000
提前致谢
<分区>
Possible Duplicate:
How do I format a double to currency rounded to the nearst dollar?
如何从货币中删除小数点?
以下是我如何将数字格式化为货币:
string.Format("{0:C}", Amount)
输出是 $20,000,000.00 但我需要 $20,000,000
提前致谢
最佳答案
指定您需要零位小数:
String.Format("{0:C0}",Amount)
关于c# - 删除货币中的小数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13823380/