2011-03-18 37 views

回答

5

这是使用ToString方法

double cost=5123456.55; 
Console.WriteLine(cost.ToString("C", new System.Globalization.CultureInfo("en-US"))); 
// The example displays the output: $5,123,456.55