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

Do vs while c#?

564


What is CLR and its application.?

647


Why c# is called type safe language?

537


What are types in c#?

593


What is the difference between == and object.equals?

589






Explain About multi level and multiple inheritance how to achieve in .net

660


What are virtual classes in c#?

620


Why dataset is used in c#?

613


what is IComparable

641


What is asynccallback c#?

607


What is the use of properties window?

602


What is class method?

545


How is the syntax written to inherit from a class in C#?Give an example ?

643


So let's say I have an application that uses myapp.dll assembly, version 1.0.0.0. There is a security bug in that assembly, and I publish the patch, issuing it under name myapp.dll 1.1.0.0. How do I tell the client applications that are already installed to start using this new myapp.dll?

571


Explain the difference between and xml documentation tag?

581