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 int parse in c#?
is it possible to access a remote web service Without UDDI?
Do we get an error while executing the “finally” block in c#?
what are some characteristics of an array?
What is array and arraylist?
What does this keyword mean in c#?
How do you encapsulate in c#?
What are types of constructor?
What is datatable and dataset in c#?
Can properties be overloaded in c#?
How do you sort an array in c#?
What are modifiers in c#?
What is different about switch statements in c#?
What is a console in c#?
What is variable in c#?