Teoman shipahi
Teoman shipahi

Reputation: 23122

C# - display cents (US), pennies (GB) of money value

I want to show culture specific currency representation of a digit value if it is under certain amount. For example:

 double money = 0.3;
 var currency = money.ToString("C", "en-US")
 var currency2 = money.ToString("C", "en-GB")

shows $0.30 for US and £0.30 for UK (en-GB).

Is there any way to represent them as 30¢ for US and 30p for UK? I also want to support other cultures in similar way if possible.

Upvotes: 0

Views: 68

Answers (0)

Related Questions