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 extension method in c sharp?

469


What does int parse do in c#?

468


Can I use parseint?

473


how to sort an array in c#

560


Is everything an object c#?

488






What is reflection in c#?

489


Which is faster list or dictionary in c#?

563


Define parsing? Explain how to parse a datetime string?

501


What are the examples of data types?

481


Which one is trusted and which one is untrusted?

508


What is the difference between returning iqueryable vs ienumerable?

449


What is a class c#?

472


What is dictionary and hashtable in c#?

462


What is the difference between list and arraylist in c#?

410


What is the execution entry point for a c# console application?

521