I have a number 2879068.
I want to display it in currency format as like 28,79,068 in C#
Can any one help me

Recommended Answers

All 2 Replies

This can help you out:
1. the currency depending on the culture,
2. the currency in your wanted format without any cash mark

int iValue = 2879068;
string sValue1 = String.Format("{0:C}", iValue);
string sValue2 = String.Format("{0:#,#.}", iValue);

but in case if you want to have some cash mark, simply do:

{0:$#,#.}//or
{0:#,#.€}

Hope it helps,
Mitja

Thanx Mitja.
It worked for me

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.