easy way to format numbers to strings?
In C#, I'd like to convert some numbers to strings in a standard format, but preferably in a simple way, such as if you were going to output them rather than store them in string variables, a la:
Console.WriteLine ("{0:F2}", num);
rather than use a bunch or string methods to make them all the same number of significant digits. Isn't there any way to do this?

Guest UserRank #1,422 · 1.2K reputationPosted Mar 2, 2009, 10:36 AM EST
Guest UserRank #1,422 · 1.2K reputationPosted Mar 2, 2009, 11:00 AM EST
Bechir BejaouiRank #144 · 15.9K reputationPosted Mar 2, 2009, 11:04 AM EST