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's new in c#?
Explain 'structure padding'?
Explain the Usage of web.config
Why do we use generics in c#?
Why do we use delegates in c#?
Is c# lazy thread safe?
What Is The Smallest Unit Of Execution In .net?
What does the initial catalog parameter define in the connection string?
Explain the working of serialization?
What is a clr host?
What is parameterized constructor?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
What is difference between private and protected?
What is extension method in c sharp?
Differentiate between sqlclient oledb and providers?