decimal d=2532.20 string nd = d.ToString("0.##");
结果:2532.2
C#去除小数位右边无用的0
原文:https://www.cnblogs.com/firstcsharp/p/14188221.html