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
What is private in c#?
What is a cs file?
Why do we need indexer in c#?
How many types of namespaces available in version4?
What are the steps to create a webservice and consume it?
Can constructor have return type c#?
Can we inherit class that contains only one private constructor?
What is difference between dictionary and hashtable in c#?
Is array thread safe c#?
Explain the various types of classes used in c#?
Does c# support multiple inheritance (mi)?
Define acid rule of thumb for transactions in c#.
What is difference between Enum and Struct?
Where are value types stored in c#?
What is variable and its classification?