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 / varun

try the below statment. It uses the indian english culture
to represent the numbers in lakhs instead of millions
format..

Console.WriteLine(i.ToString("#,#",
System.Globalization.CultureInfo.GetCultureInfo("en-IN")));

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different states of a thread?

963


What is singleordefault c#?

954


What are the different approaches of passing parameters to a method?

1028


Is a decimal an integer?

932


What is the best dependency injection c#?

929


What do you use c# for?

964


How would you describe encapsulation in c#?

947


What are satellite assemblies?

1015


Does c# support properties of array types?

973


What is an xsd file?

967


What is the difference between a variable and a literal?

1117


What is namespace explain with example?

916


Why is c# good for games?

1012


Distinguish between finally and finalize blocks?

973


What are scriptable objects?

982