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 verbatim string?
What is data quality assurance?
What is the difference between struct and class in c#?
What is the adv of using System.Text.StringBuilder over System.String?
What does it mean?
Explain what is copy constructor?
What is default value of bool in c#?
What does .length do in c#?
What is the use of tuple in c#?
How can it prevents DLL Hell assembly versioning in .NET?
Can the nested class access, the containing class. Give an example?
Is Facebook a desktop application?
What is a destructor in c#?
What is public, private, protected, internal and internal protected?
What is interface used in c#?