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 Is The Smallest Unit Of Execution In .net?
What is an escape sequence?
What are satellite assemblies?
Are attributes inherited c#?
Does a class need a constructor c#?
What is the difference between a class and an object c#?
What is eager and lazy loading in c#?
What is inheritance in csharp?
What is out in c#?
If a child class instance is created, which class constructor is called first - base class or child class?
what is the difference between a struct and a class in c#?
Write a program in C# for checking a given number is PRIME or not.
What is foreach loop in c#?
What is _viewstart cshtml?
What is the difference between add and addrange in c#?