How to convert decimal number or string to Indian currency format


Here we can learn how to convert decimal number or string to Indian format using culture information

Display format:

1.00

10.00

100.00

1,000.00

10,000.00

1,00,000.00

10,00,000.00

1,00,00,000.00

Example:

CultureInfo CInfo = new CultureInfo(“hi-IN”);
string Prc = “100000000000”;
//string Prc = decimalvalue.ToString();//if decimal
Response.Write(Convert.ToDecimal(Prc).ToString(“N”, CInfo));

Output:

1,00,00,00,00,000.00

Advertisements

One thought on “How to convert decimal number or string to Indian currency format

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s