[ACCEPTED]-How to format an int as currency in C#?-currency
Accepted answer
Use format "C0".
0
Possible to use n0 which provide commas 1 like 1,234. Currency sign won't be there
try
using System.Globalization
@string.Format(new CultureInfo("en-IN"), "{0:c}", moneyvalue)
wil show the format in Rs.
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.