double a = 12354.365;
Console.WriteLine(string.Format("{0:f4}", a));
输出a的四位小数
posted on 2014-04-04 21:55 雨钝风轻 阅读(166) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 雨钝风轻 Powered by .NET 9.0 on Kubernetes