views:

63

answers:

1

I'm displaying currency using the current method

String.Format("{0:C}", item.DonationAmount)

Which outputs like $10.00

We will be dealing with large dollar amounts, and no cents. We would like the currency to display as $10 without the decimal or zeroes. How can I do this? Removing the currency format makes the number display like 10.0000 :( thanks in advance.

A: 

Specify you want zero decimal places:

String.Format("{0:C0}", item.DonationAmount)
Stuart Dunkeld