By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 883 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

use of String.Format

P: n/a
Hello, programmers.
How can I use the method String.Format to convert a double, like
1120.2 to a string like "1,120.2" ?
Or there is a better way ?

Thanks in advance.
Nov 19 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 19 nov, 15:11, "Peter Morris" <mrpmorri...@SPAMgmail.comwrote:
http://blog.stevex.net/index.php/str...ing-in-csharp/
Thanks , Peter.: string.Format("{0:#,##0.0}", 1120.2)
Nov 19 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.