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

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

结果:2532.2

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