C#去除小数位右边无用的0
时间:2020-12-25 14:43:35
收藏:0
阅读:103
decimal d=2532.20 string nd = d.ToString("0.##");
结果:2532.2
原文:https://www.cnblogs.com/firstcsharp/p/14188221.html
评论(0)