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 is private in c#?

883


What is a cs file?

993


Why do we need indexer in c#?

1010


How many types of namespaces available in version4?

954


What are the steps to create a webservice and consume it?

936


Can constructor have return type c#?

1020


Can we inherit class that contains only one private constructor?

960


What is difference between dictionary and hashtable in c#?

882


Is array thread safe c#?

873


Explain the various types of classes used in c#?

944


Does c# support multiple inheritance (mi)?

945


Define acid rule of thumb for transactions in c#.

897


What is difference between Enum and Struct?

1011


Where are value types stored in c#?

1048


What is variable and its classification?

946