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
How many kinds of elements an array can have?
Int map to which .net types?
What is difference between ilist and list in c#?
What does console readline do in c#?
Can we inherit static class in c#?
How is a string immutable?
What is Inheritance in C#?
What do you mean by synchronous and asynchronous operations?
What is c# in asp net?
What is a partial class. Give an example?
Can I define my own exceptions?
What is the do while loop code?
Show us in simple steps to create setup & deployment project for windows application?
Why is c# a good programming language?
Why interface is required?