Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is verbatim string?

907


What is data quality assurance?

882


What is the difference between struct and class in c#?

1219


What is the adv of using System.Text.StringBuilder over System.String?

953


What does it mean?

927


Explain what is copy constructor?

1006


What is default value of bool in c#?

939


What does .length do in c#?

922


What is the use of tuple in c#?

904


How can it prevents DLL Hell assembly versioning in .NET?

1004


Can the nested class access, the containing class. Give an example?

860


Is Facebook a desktop application?

904


What is a destructor in c#?

964


What is public, private, protected, internal and internal protected?

946


What is interface used in c#?

1004