I want to format an int as a currency in C#, but with no fractions. For example, 100000 should be ‘$100,000’, instead of ‘$100,000.00’ (which 100000.ToString(‘C’) gives).
I know I can do this with 100000.ToString(‘$#,0’), but that’s $-specific. Is there a way to do it with the currency (‘C’) formatter?
Use format ‘C0’.