Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Format 1234567.89 as 1,234,567.89
Re: Format 1234567.89 as 1,234,567.89 [message #41322 is a reply to message #39121] Sat, 30 November 2013 16:30 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 527
Registered: March 2007
Contributor
BTW, if you want to format a double to certain decimal digits plus thousand separator, aside from the language setting step mentioned above, the format string should be something like this:

"%2!nl"
where 2 is the number of decimal digits, ! will force trailing 0 padding if needed, nl will allow localized thousand separator.

Happy coding!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Need Books
Next Topic: Help with Lib Wrapper DLL
Goto Forum:
  


Current Time: Sat May 18 04:38:16 CEST 2024

Total time taken to generate the page: 0.01637 seconds