i want display a given number into Rupees Format

Like
Given number is : 156735

my Expected output is 1,56,735.

how to display?

Answer Posted / jayashree k r

1,56,735 is not a valid number format. you can display as
156,735.
int i = 156735
i.ToString("#,#",
System.Globalization.CultureInfo.InvariantCulture)
will give you the expected result.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain dataset.acceptchanges method in .net?

614


Is php easier than c#?

583


What is the use of xmlserializer?

553


What is a satellite assembly in c#?

648


Explain code compilation in c#.

609






Can dictionary have duplicate keys c#?

567


Is array a list?

567


Can u list some style properties of List Box?

581


What is unmannaged code and will CLR handle this kind of code or not .

674


What is the use of tuple in c#?

590


What is the difference between method parameters and method arguments. Give an example?

584


What is keywords in c#?

563


Different between method overriding and method overloading?

568


What is a Jagged Array in C#?

635


What is ispostback c#?

557