将小数点后的0去掉

decimal d = 0.0500M;
var C = d.ToString("0.##");//0.05

原文地址:https://www.cnblogs.com/macT/p/10928118.html