Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am using c# windows application 2010, I have a total amount of 150000, and the result comes now I want 1,50,000.00.

what to do any one give me suggestions.

What I have tried:

I am using c# windows application 2010, I have a total amount of 150000, and the result comes now I want 1,50,000.00.

what to do any one give me suggestions.
Posted
Updated 21-Jul-23 5:42am
v2

Use the appropriate currency formatter, as described in the documentation: Standard numeric format strings | Microsoft Learn[^].
 
Share this answer
 
Comments
Graeme_Grant 21-Jul-23 9:48am    
Gets very interesting depending on which culture. One of the most interesting is China/Japan - thousand separators is every 10000 or 1,0000.
Richard MacCutchan 21-Jul-23 9:50am    
The Indian system (crores and lakhs) is even weirder.
Graeme_Grant 21-Jul-23 10:01am    
I was trying to find reference page for the old Coding Challenges that Chris use to run. It have a complete breakdown. Now I can only find the bookmark...
Richard MacCutchan 21-Jul-23 11:04am    
Theyb are all filed under his QA entries: Member questions & answers[^].
Graeme_Grant 21-Jul-23 11:24am    
Yes, I am aware. I was referring to my research - the actual links are not there. They should be in a document with the project on one of my hard drives. I just need to locate it.
It depends on how it will be used. If you want to be non-culture-specific, then check out this article on CP: Culture Specific Number Formatting in ASP.NET[^]. The code is a console app.

If you are doing it for yourself, or the app is ignorant of it's culture, you can hard-format the output. See @Richard_MacCutchan solution.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900