C#decimal四舍五入格式化

Console.WriteLine(string.Format("{0:####}", 594884.539));
Console.WriteLine(string.Format("{0:N0}", 594884.539));

猜你喜欢

转载自www.cnblogs.com/coce/p/10318785.html