C#去除小数位右边无用的0

decimal  d=2532.20
string nd = d.ToString("0.##");

结果:2532.2

posted @ 2020-12-25 11:58  James·wang  阅读(1865)  评论(0编辑  收藏  举报