0

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

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by MARKAND911
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.