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 / jayashree k r
1,56,735 is not a valid number format. you can display as
156,735.
int i = 156735
i.ToString("#,#",
System.Globalization.CultureInfo.InvariantCulture)
will give you the expected result.
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What is an indexer in c#?
How do I start a program in c#?
Can we have 2 main methods in c#?
C# called c sharp why?
What is anonymous method in c#?
What is strongly typed view?
Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).
Can you declare a field readonly?
Are there functions in c#?
How many types of constructors are there in c#?
What is concatenation and when should it be used?
What is sealed class in c#?
how to sort an array in c#
What is namespace give the example?
Explain the difference between private and shared assembly?