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
Can a class be private in c#?
What is array c#?
Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.
What is the advantage of dependency injection?
What framework is used for performance testing/load testing?
Can you see a loop recorder?
What is uint64_t?
Explain the three test cases in unit testing?
Can we inherit singleton class in c#?
What are the different ways of method can be overloaded?
Can we overload the main method in c#?
What is field in c#?
What is lazy t?
What is main thread in c#?
Why dataset is used in c#?